|
|
|
2.15.05
click here to download as a screensaver for windows
And this is the sloppy code that did this:
count = 1;
nextLevelCount = 1;
_root.onEnterFrame = function() {
currentRadius = Math.random()*(Stage.width *.2);
currentRandomX = (Math.random() * Stage.width);
currentRandomY = (Math.random() * (Stage.height + (Stage.width *.2))) -(currentRadius);
_root["circle"+count].removeMovieClip();
_root.createEmptyMovieClip(["circle"+count], nextLevelCount);
bezierApprox = currentRadius *.05;
currentColor = (16777215 * Math.random()) + 500000;
_root["circle"+count].beginFill(currentColor, 100);
_root["circle"+count].curveTo( currentRadius-bezierApprox, 0+bezierApprox, currentRadius, currentRadius );
_root["circle"+count].curveTo( currentRadius-bezierApprox, (currentRadius*2)-bezierApprox , 0, currentRadius*2 );
_root["circle"+count].curveTo( -currentRadius+bezierApprox, (currentRadius*2)-bezierApprox, -currentRadius, currentRadius );
_root["circle"+count].curveTo( -currentRadius+bezierApprox, bezierApprox, 0, 0 );
_root["circle"+count].endFill();
_root["circle"+count]._x = currentRandomX;
_root["circle"+count]._y = currentRandomY;
count++;
nextLevelCount++;
if(count == 400){
count = 1;
}
}
stop();
|
|