Rummaging

Was going through some old experiments and decided it might be fun to post some over the next few days.

UPDATE: Source below…

[SWF(width=500, height=500, backgroundColor=0x020000, frameRate=30)]
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.quality = "low";
var circ:Shape, lastCirc:Shape;
var max:int = 82, n:int = -1;
while(++n < max) {
	circ = lastCirc = Shape(addChild(new Shape()));
	circ.graphics.lineStyle(n, n * 0x140000, .4);
	circ.graphics.drawCircle(250, 250, n + n + n + n + n);
	circ.filters = [new BevelFilter(n), new BlurFilter(n*.2)];
}
addEventListener(Event.ENTER_FRAME, doLoop);
function doLoop(e:Event):void {
	for(var i:int = 0; i < max; ++i) {
		circ = Shape(getChildAt(i));
		lastCirc.x = circ.x; 
		lastCirc.y = circ.y;
		lastCirc = circ;
	}
	circ = Shape(getChildAt(0));
	circ.x = Math.sin(++n*.075) * Math.cos(n*.025) * 135;
	circ.y = Math.sin(n*.08) * Math.cos(n*.02) * 135;
}

Leave a Reply