Organ1k, "An organic play of color that will hopefully keep you staring endlessly." Just sit back and watch or interact with the mouse! Read all about the concept and byte-saving techniques used at ht…
(function(J){var A,v,F,D,q,n,G=J.body.style,f=J.getElementById("c"),d=f.getContext("2d"),p=32,I=360,e=Math,B=e.min,b=e.sin,c=e.cos,l=e.random,z=e.PI*2,o=z/I,t=0,a=0,C=0,k=0,h=G.margin=0,H=2,s=2,r=3,E=6,g=p,u=[],i=[],m="f001fa01ff0107010ff100f14081e8e".split(1),j=l(G.overflow="hidden")*I,w=l(onmousemove=function(x){g=0;q=x.clientX-F;n=x.clientY-D})<.5?1:-1;setInterval(function(L,x,K,y,M){if(!(++t%p)){while(k==~~(y=l(M=l())*6));k=~~y;y<.4?w=-w:y<2?h++:y<3?C=M*7:y<4?H=M*8+1:y<5?s=M*3+1:r=B(E=M*8+4,l()*5+5)-2}A=f.width=innerWidth;v=f.height=innerHeight;L=B(F=A/2,D=v/2);x=L/I;L-=20*x;if(++g>p){if(C<1){j-=H*w*4;q=b(j*o)*L;n=c(j*o)*L}else{j-=H*w*2;y=e.abs(q=b(j*o)*L);q=y*c(M=e.atan2(0,q)+j*o/C);n=y*b(M)}}for(K=0;K<p;){y=u[K]=u[K]||{x:0,y:0};M=u[K-1];y.x=K?y.x+(M.x-y.x)/s:q;y.y=K++?y.y+(M.y-y.y)/s:n}for(K=0;y=u[K*4];){i[a++%I]={s:1,d:1,c:m[(h+K++)%8],x:y.x,y:y.y}}d.fillRect(K=0,0,A,v);while(y=i[K++]){M=y.s+=y.d;y.d=M>E?-1:M<r?1:y.d;d.beginPath(d.fillStyle="#"+y.c);d.fill(d.arc(F+y.x,D+y.y,M*x,0,z,0))}},p)})(document)
KGZ1bmN0aW9uKEope3ZhciBBLHYsRixELHEsbixHPUouYm9keS5zdHlsZSxmPUouZ2V0RWxlbWVudEJ5SWQoImMiKSxkPWYuZ2V0Q29udGV4dCgiMmQiKSxwPTMyLEk9MzYwLGU9TWF0aCxCPWUubWluLGI9ZS5zaW4s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k08cj8xOnkuZDtkLmJlZ2luUGF0aChkLmZpbGxTdHlsZT0iIyIreS5jKTtkLmZpbGwoZC5hcmMoRit5LngsRCt5LnksTSp4LDAseiwwKSl9fSxwKX0pKGRvY3VtZW50KQ==
Please see http://github.com/cowboy/js1k-organ1k for the fully
commented source, containing explanations of drawing, math and
randomization logic, as well as byte-saving techniques used.