Topic: Mandelbrot tracer in 137 bytes (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Norway |
![]() 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 |
![]() |
Nervous Wreck (II) Inmate From: Toronto |
![]() |
Nervous Wreck (II) Inmate From: blog.nihilogic.dk |
![]() Oh so many dirty tricks. |
Paranoid (IV) Inmate From: Norway |
![]() Nice! Thanks for challenging me. I really need some kick. |
Paranoid (IV) Inmate From: Cold Sweden |
![]() 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 |
![]() |
Paranoid (IV) Inmate From: Cold Sweden |
![]() 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 |
![]() 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 |
![]() 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 |
![]() It seems Firefox accepts the body tag without the ending ">", so that's 114 bytes |
Lunatic (VI) Mad Scientist From: The Happy Hunting Grounds... |
![]() Holy crud! |
Bipolar (III) Inmate From: blog.nihilogic.dk |
![]() 113 bytes with a slightly different look: |
Paranoid (IV) Inmate From: Norway |
![]() 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 |
![]() |