Everybody that has a fascination with computers and programming will have seen “demos”; programs intended to show off some cool graphics that are supposed to be the cutting edge of what’s possible in that specific language. I personally particularly like size-restricted demos, which do some really cool stuff in the least number of bytes possible. Most of such demos choose a power of 2 for the size limit, particularly as 256 bytes, 1Kb, 4Kb, or 64Kb.
I’ve been working on a browser demo, written in JavaScript and HTML, for quite a bit now. I’m hoping that at some point I can combine all the “scenes” I created into one coherent demo. Until then, here are two small 255 byte demos to have a look at:
- Ascii art Mandelbrot-set rotozoom (Thanks to bonz)
- Ascii art Julia-set rotozoom (Thanks to shr^Molecoola)
I got the idea for these from two other 256b JavaScript demos by bonz and shr respectively.
These have been tested with various browsers and seem to work on all but FireFox 2.


2 Comments to “256b JavaScript demos”
2008/09/04
These produce no output in my Firefox 3.0.1 on Linux.
—snip
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008072820 Firefox/3.0.1)
—snip
They run great simultaneously in their own tabs in Google Chrome 0.2.149.27 on Windows XP however.
Thanks for sharing,
-Tyler
2009/04/07
FireFox does not support “innerText”. They both use that to output the fractal, so they won’t work with FireFox.
They should work with Chrome, MSIE, Opera and Safari, though the later seems to require you to repeatedly click inside the window to update the screen; I have no clue why.
Leave a Comment