OZONE Asylum
Forums
DHTML/Javascript
Mandelbrot tracer in 137 bytes
This page's ID:
30330
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Nice! Thanks for challenging me. I really need some kick. I facepalm'ed myself when I saw the [i]<body onload="...">[/i] and the [i]whitespace[/i] instead of [i]\n[/i]. Don't know why I insisted in the PRE route. That was 2 bytes stupidly wasted. Good job on the [i]k-=1/32[/i]. Using of a power of 2 to be IEEE 754 friendly and have the [i]k%3[/i] behave nicely. There's one thing I don't quite understand : the exit condition of the inner loop. I suppose [i]i/y[/i] evaluates to [i]false[/i] because of rounding errors, but I'm not entirely sure. I don't see how [i]y[/i] could be [i]Infinity[/i] thus making [i]i/y[/i] equal [i]0[/i] aka [i]false[/i]. Anyhow, very good job. So with no further ado : [b]117 bytes[/b] : [url=http://www.p01.org/releases/Demoscene/files/mandelbrot_117b.htm]http://www.p01.org/releases/Demoscene/files/mandelbrot_117b.htm[/url] ;) [url=http://www.p01.org/][img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_teapot.png[/img][/url] [small](Edited by [url=http://www.ozoneasylum.com/user/2185]poi[/url] on 09-21-2008 01:39)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »