Lotus flower
author 夏天的树人
/**
* Copyright summerTree ( http://wonderfl.net/user/summerTree )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/7Oph
*/
package
{
//author 夏天的树人
import flash.display.Sprite;
import flash.display.Shape;
import flash.filters.*;
import flash.geom.*;
[SWF(backgroundColor="#000000")]
public class Main extends Sprite
{
private var pen:Shape=new Shape();
public function Main()
{
addChild(pen);
//创建滤镜组合
pen.filters=[
new BlurFilter() ,
new GlowFilter(),
];
init();
}
//利用黄色线和滤镜组合形状
private function init():void
{
pen.graphics.lineStyle(1,0xFFFF00);
var n:int=0;
while (n<360)
{
n++;
var point:Point=Point.polar(200,n*4); //随机生成线条
pen.graphics.moveTo(250,200);
pen.graphics.curveTo(250+Math.cos(n*Math.PI/180)*100,200+Math.sin(n*Math.PI/180)*100,250+point.x,200+point.y);
}
}
}
}