Skip to content

Instantly share code, notes, and snippets.

@postspectacular
Last active January 11, 2016 02:12
Show Gist options
  • Save postspectacular/84078b77fcdcbbfb4b43 to your computer and use it in GitHub Desktop.
Save postspectacular/84078b77fcdcbbfb4b43 to your computer and use it in GitHub Desktop.
242 chars (original author @ra) - I've done further optimizations to bring size down from 261
<canvas><script>T=Math;S=T.sin;Q=T.cos;N=(M=75)*2;C=(V=document.all[3]).getContext("2d");a=b=d=1.8;c=.3;setInterval(function(){V.height=300;x=y=i=1e4;a-=1/N;while(--i)C.fillRect((t=x,x=S(a*y)-Q(b*x))*M+N,(y=S(c*t)-Q(d*y))*M+N,1,1)})</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment