137.50776...
/**
* Copyright 0xABCDEF ( http://wonderfl.net/user/0xABCDEF )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/mdQG
*/
package {
import gs.TweenLite;
import flash.display.BitmapData;
import flash.display.Bitmap;
import flash.display.Sprite;
import flash.events.Event;
import flash.geom.Point;
public class _13750776 extends Sprite {
public function _13750776() {
var sw:int = stage.stageWidth;
var sh:int = stage.stageHeight;
var display:Bitmap = addChild( new Bitmap( new BitmapData( sw, sh, false ) ) ) as Bitmap;
var canvas:BitmapData = display.bitmapData;
var angle:Number = 137.50776*Math.PI/180;
var currentAngle:Number = 0;
var target:Point;
var particles:Array = [];
var num:int = 10000;
var len:Number = sw/2;
for( var i:int=0; i<num; ++i )
{
target = Point.polar( len-=sw/2/num, currentAngle += angle );
particles.push( { x:sw/2, y:sh/2 } );
TweenLite.to( particles[ particles.length-1 ], 1, { delay:0.003*i, x:sw/2+target.x, y:sh/2+target.y } );
}
function draw( e:Event ):void
{
canvas.fillRect( canvas.rect, 0 );
for( var i:int=0; i<particles.length; ++i )
{
canvas.setPixel( particles[ i ].x, particles[ i ].y, 0xFFFFFF );
}
}
addEventListener( Event.ENTER_FRAME, draw );
}
}
}