Dunno
/**
* Copyright p4n7a ( http://wonderfl.net/user/p4n7a )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/kDH9
*/
package {
import flash.display.Sprite;
import flash.events.Event;
import flash.display.StageQuality;
public class Dunno extends Sprite {
private var iw:Number=500;
private var ia:Number=0;
public function Dunno() {
stage.quality=StageQuality.LOW;
addEventListener(Event.ENTER_FRAME, onframe);
}
private function onframe(event:Event):void {
ia+=.01;
graphics.clear();
go(25, iw);
}
private function go(iter:uint, w:Number, i:uint=0):void {
if(i<iter) {
var cx:Number, cy:Number;
cx=cy=250+(iw-w)/2;
var a:Number;
var aspan:Number=(Math.PI*2)/(i+1);
for(var c:uint=0; c<i+1; c++) {
var col:uint=c/iter*0xffffff;
graphics.beginFill(col, .15);
graphics.lineStyle(1,col,.2);
a=c*aspan;
graphics.drawCircle(250+Math.cos(a)*w,250+Math.sin(a)*w,w);
}
go(iter, w*(Math.sin(ia)*.85), i+1);
}
}
}
}