forked from: flash on 2011-6-8
♥0 |
Line 34 |
Modified 2011-06-09 16:54:30 |
MIT License
archived:2017-03-20 16:11:41
ActionScript3 source code
/**
* Copyright itkr ( http://wonderfl.net/user/itkr )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/iwap
*/
package {
import frocessing.display.F5MovieClip2DBmp;
import flash.geom.Point;
import flash.geom.ColorTransform;
public class Main extends F5MovieClip2DBmp{
private const STAGE:Object = {stageX:460,stageY:460};
private var count:int = 0;
private var r:int = 0;
private var countUpFlag:Boolean = true;
private var ct:ColorTransform = new ColorTransform(0.8,0.8,0.8);
public function Main(){
super(false,0x000000);
}
public function draw():void{
r += PI/3;
if(count>200){
countUpFlag = false;
}
if(count<=0){
countUpFlag = true;
}
if(countUpFlag == true){
count++;
}else{
count--;
}
stroke(random(0xffffff));
strokeWeight(5);
noFill();
circle(STAGE.stageX/2+cos(r)*count,STAGE.stageY/2+sin(r)*count,count);
bitmapData.colorTransform( bitmapData.rect, ct );
}
}
}