Topic: Mandelbrot tracer in 137 bytes (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Norway |
posted 06-15-2008 19:03
In my never ending quest for size optimization in DHTML, I wanted to see how many bytes were needed to render the initial Mandelbrot set. A while ago I made one zooming and rotating in 256 bytes and hoped I could get close to or even reach 128 bytes but I failed "short" and got stuck at 137 bytes. |
Paranoid (IV) Inmate From: Norway |
posted 06-15-2008 21:54 |
Nervous Wreck (II) Inmate From: Toronto |
posted 06-17-2008 06:43 |
Nervous Wreck (II) Inmate From: blog.nihilogic.dk |
posted 09-19-2008 18:54
Oh so many dirty tricks. |
Paranoid (IV) Inmate From: Norway |
posted 09-21-2008 01:14
Nice! Thanks for challenging me. I really need some kick. |
Paranoid (IV) Inmate From: Cold Sweden |
posted 09-21-2008 01:54
Damn, you guys are insane. code: <body onload=for(n=84;n-=1/32;document.write(n%3?6+!k:'\n'))for(r=i=0,k=99;--k/r;i=t)t=2*r*i+1-n/42,r=r*r-i*i+1-n%3>
|
Paranoid (IV) Inmate From: Norway |
posted 09-21-2008 02:18 |
Paranoid (IV) Inmate From: Cold Sweden |
posted 09-21-2008 02:28
p01, I removed the sentence where I mentioned using some character that would break the word, and forcing an encoding, since actually it's 115 characters, but more bytes. |
Paranoid (IV) Inmate From: Norway |
posted 09-21-2008 02:33
It isn't more bytes if you use a character whose "ASCII" code is below 128, e.g. a control character |
Bipolar (III) Inmate From: blog.nihilogic.dk |
posted 09-21-2008 11:35
Nice job p01 and HZR, I like the special character to break the lines. I tried the onload without quotes as well, but I guess the parser tripped over the whitespace and not the quotes as I had assumed, so I just abandoned that idea. D'oh. |
Bipolar (III) Inmate From: blog.nihilogic.dk |
posted 09-21-2008 11:54
It seems Firefox accepts the body tag without the ending ">", so that's 114 bytes |
Lunatic (VI) Mad Scientist From: The Happy Hunting Grounds... |
posted 09-21-2008 12:02
Holy crud! |
Bipolar (III) Inmate From: blog.nihilogic.dk |
posted 09-21-2008 12:45
113 bytes with a slightly different look: |
Paranoid (IV) Inmate From: Norway |
posted 09-21-2008 13:12
I didn't change the look before as the characters 6,7 and 7,8 gave a much cleaner/sharper output. |
Paranoid (IV) Inmate From: Cold Sweden |
posted 09-21-2008 15:31 |