My third and last entry for #tweetcoding is called "stare". I like it best from all of my entries. Unfortunately I don´t think I will win something since there are so many good entries, interactive ones in particular. But nevertheless this contest made me some nice stuff. So it was worth the while.
It will look different every time you load it. Some figures look definitely cooler than others. Here is the code:
g=graphics;mt=g.moveTo;lt=g.lineTo;ls=g.lineStyle;m=Math;r=m.random;s=m.sin;i=0;o={};function f(e){if(i<350){if(!i){d=1+r()*3;x=275,y=200;mt(0,0);g.beginFill(0);w=0}k=0;while(k++<65){ls(1);lt(s(i+=d)*i,m.cos(i)*i)}}else{rotation+=w;w+=.02}}addEventListener("enterFrame",f);