Timeline for Draw A Sierpinski Triangle
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 23, 2016 at 22:16 | history | edited | Kevin Reid | CC BY-SA 3.0 |
use line breaks
|
Nov 23, 2016 at 22:02 | history | edited | Kevin Reid | CC BY-SA 3.0 |
added 13 characters in body
|
Nov 23, 2016 at 21:31 | comment | added | user62131 | As this contains a script, I'd recommend titling it as HTML + Javascript. That'll make it clearer to someone skimming what sort of answer it is. | |
Oct 6, 2016 at 16:36 | history | edited | Kevin Reid | CC BY-SA 3.0 |
added 251 characters in body
|
Dec 17, 2015 at 15:44 | history | edited | Kevin Reid | CC BY-SA 3.0 |
stop using lastChild; it doesn't work any more. Add some more explanation
|
Jun 14, 2012 at 7:17 | comment | added | boothby | Bravo, this is just wonderful. | |
Jun 10, 2012 at 12:16 | history | edited | Kevin Reid | CC BY-SA 3.0 |
take || suggestion
|
Jun 10, 2012 at 11:20 | comment | added | primo |
Minor improvement: x&y?0: can be replaced with x&y|| Otherwise nice solution.
|
|
Jun 9, 2012 at 17:00 | history | edited | Kevin Reid | CC BY-SA 3.0 |
use for loop tricks suggested; use lastChild instead of firstChild
|
Jun 9, 2012 at 16:53 | comment | added | Kevin Reid | ids being turned into global variables is a horrible misfeature which I refuse to acknowledge, and WebKit does not implement it in standards mode. Thank you for the loop trick. | |
Jun 9, 2012 at 15:47 | comment | added | copy |
Nobody cares if your HTML validates at codegolf :-) Some improvements: <canvas id=c> and then c.getContext . Shorten loops: for(x=k=128;x--;)for(y=k;y--;)
|
|
Jun 9, 2012 at 13:09 | history | answered | Kevin Reid | CC BY-SA 3.0 |