Funny Line #tweetcoding
#tweetcoding
* by Duarte Peixinho
* duarte.peixinho@gmail.com
* page: http://duartepeixinho.com
*
/*
*
* #tweetcoding
* by Duarte Peixinho
* duarte.peixinho@gmail.com
* page: http://duartepeixinho.com
*
*/
package {
import flash.display.Sprite;
import flash.display.Graphics;
public class FlashTest extends Sprite {
//gimme code
var g=graphics;
var mt=g.moveTo;
var lt=g.lineTo;
var ls=g.lineStyle;
var m=Math;
var r=m.random;
var s=m.sin;
var i=0;
var o={};
public function FlashTest() {
addEventListener("enterFrame",f);
}
public function f(e){/*src*/
g.clear();y=100;mt(0,y);for(i=0;i<90;i++){ls(3,r()*1e7);if(m.pow(i*10-mouseX,2)+m.pow(y-mouseY,2)<9000)lt(mouseX,mouseY);else lt(i*10,y);}
}
}
}