Hi everybody, this is another little image produced with CSS -- sorry, I didn't have ideas about anything more interactive than images :-) The code is a single for loop evaluating the following formulas: w(n) = a * x(n) + (2 - 2*a) * x(n)^2 / (1 + x(n)^2) x(n+1) = b * y(n) + w(n) y(n+1) = w(n+1) - x(n) with a = -0.8, b = 0.9 and starting with x(0)=4, y(0)=0. The formula produces a nice feather-like pattern for 2500 iterations, then converges to (0,0) abruptly. For each iteration, a P tag with absolute positioning is written in the document. Have fun, Bonz (Paolo Bonzini) Hi everybody, here is my first JavaScript program: a Mandelbrot set in 251 bytes! To the brave who want to read the program and never wrote optimized JavaScript: I took maximum advantage of for's three arguments, so the body of each for is just another for: for (a;b;c) d for (e;f;g)... h becomes for(a;b;h,c) for(d,e;f;g)... and this saved me at least 15 bytes. Also I used > tests to avoid having to escape the < (that is, 4>r*r+i*i instead of r*r+i*i<4). The code is a standard (though size-optimized) Mandelbrot set algorithm, with the output concatenated into a variable (d) a line at a time. The colors are obtained by putting each output inside a tag with appropriate CSS styling; the formatting is done with a
 tag so that a new-line (\n, two
characters shorter than 
) suffices to end each "scanline". Note that the output of each scanline is computed right-to-left to save a comparison on the x (x instead of x<80). Since the presence of 96*80=7680 tags with CSS styles can easily bring your browser to its knees, I included an ASCII only version which produces a single character for each position, but is a lot less pleasing to look at. Have fun, Bonz (Paolo Bonzini) ############################## "Hungary" by Gargaj/ÜD 256 byte HTML Wildmag 256b.htm compo ############################## Hajrá magyarok! ############################## ############################## "Minimal" by Gargaj/ÜD 256 byte HTML Wildmag 256b.htm compo ############################## Greets go to Viktor Vasarely :) ############################## ############################## "Ugly" by Gargaj/ÜD 256 byte HTML Wildmag 256b.htm compo ############################## Warning! If your browser asks whether you want to abort running the JS, please press No. Precalc usually takes less then a minute. Thanx. ############################## __ ____ __ ____ ____ __ / (_ _\\_ \_ / /____ _\\_ \_ _\\_ /__ _)_/ / / //_// / / / _/ / \ \ \_ / \ / / \ \_ /__\____/______\ __\___\ _______\ ____\____/ - -diP--------------------------------dTR- - altered subset strange 256 byte html compo a mandelbrot set in 242 byte dhtml while computing ( ~45 seconds @ my p4 1.7 ghz eg ) it locks up a lot of windows and / or ie 6. i can't help it. simply be aware and let it calculate untill it is done. noize/kolor, 2002-02-04 noize@gmx.net www.kaoz.org/kolor - ---------------------------------------- - f l a m e - t h r o w e r . 256 for 256b.htm compo by raist http://www.raist.cz/256.html/fl amethrowers.html [IE only] h t t p:// w w w .r a i s t.c z r a i s t @ e m a i l . c z jumping.jack.on.green.playground for 256b.htm compo by raist online[IE only,tested on IE5.5]: http://www.raist.cz/256.html/jum ping.jack.on.green.playground.ht ml h t t p:// w w w .r a i s t .c z r a i s t @ e m a i l . c z .