Skip to content

Instantly share code, notes, and snippets.

@alright
Created August 26, 2010 23:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alright/552440 to your computer and use it in GitHub Desktop.
Save alright/552440 to your computer and use it in GitHub Desktop.
N = [K = R.getContext('2d')];
for (t = B = 127, I = K.getImageData(0, 0, q = 64, q); t--; $ = Math.cos) N[t] = t / 43 & 1;
setInterval("t++;for(i=y=-1;y<1;y+=A)for(x=-1;x<1;x+=A=1/32,I.data[i+=4]=h+h)for(m=C=$(a=t/86),S=$(a+8),c=$(b=t/B),s=$(b+8),u=x*C+S,v=y*c-u*s,u=u*c+y*s,w=C-x*S,X=q+9*$(a+b),Y=q+9*$(b-a),Z=t,h=B;--h&&m<q;X+=u,Y+=v,Z+=w)for(m=1;N[X*m&B]+N[Y*m&B]+N[Z*m&B]<2&&m<q;m*=3);K.putImageData(I,0,0)", 9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment