forked from: flash on 2010-10-20
/**
* Copyright tonohimenana ( http://wonderfl.net/user/tonohimenana )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/4KLb
*/
// forked from tonohimenana's flash on 2010-10-20
package {
import flash.display.Sprite;
import flash.display.Shape;
public class DrawTest extends Sprite {
public function DrawTest() {
var width:int=this.stage.stageWidth;
var height:int =this.stage.stageHeight;
var shape:Shape=new Shape();
for(var i:int =0;i<1000;i++){
var color:Number=RGBColor(255,Math.random()*256, 128+Math.random()*128);
shape.graphics.lineStyle(3,color);
shape.graphics.moveTo(0+i,0);
shape.graphics.lineTo(0+i,200);
}
addChild(shape);
}
public function RGBColor (r:Number,g:Number,b:Number):int{
return(Math.round(r)<<16)+(Math.round(g) <<8)+Math.round(b);
}
}
}