frocessing2
// forked from alt's code on 2008-12-18
// write as3 code here..
package
{
import flash.display.*;
import frocessing.display.F5MovieClip2D;
public class frocessing1 extends F5MovieClip2D
{
private var count:int = 50;
private var addNum:int = 1;
public function frocessing1()
{
stage.frameRate = 30;
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
super();
QBest();
}
public function draw():void
{
clear();
size(500, 500);
colorMode(HSB, 360, 100, 100, 100);
background(0,0,0,100);
noStroke();
fill(210,100,100,10);
translate(0, 0);
var ellipse_size:int = 400;
var left:int = 250;
var top:int = 250;
//同心円を描いて行く
for(var i:int = 0; i < 16; i++)
{
ellipse(left, top, ellipse_size, ellipse_size);
ellipse_size = ellipse_size - count + mouseX/10;
}
if (count > 100) addNum = -2;
else if (count < 50) addNum = 2;
count += addNum;
}
}
}