City in a Bottle

Crazy animation by Frank Force, Generative Artist • Game Dev • Programmer • Size Coding Expert • Musician • Zen Buddhist • Wizard • Friend to Cats. twitter site

Click to start. HEIGHT 200


As distributed:

<canvas style=width:99% id=c onclick=setInterval('for(c.width=w=99,++t,i=6e3;i--;c.getContext`2d`.fillRect(i%w,i/w|0,1-d*Z/w+s,1))for(a=i%w/50-1,s=b=1-i/4e3,X=t,Y=Z=d=1;++Z<w&(Y<6-(32<Z&27<X%w&&X/9^Z/8)*8%46||d|(s=(X&Y&Z)%3/Z,a=b=1,d=Z/w));Y-=b)X+=a',t=9)>


Daniel Darabos decodes this algorithm and adds radio buttons and slider controls on all aspects of the rendering. A must-see page. observable