/**
* Copyright yd_niku ( http://wonderfl.net/user/yd_niku )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/2sH7
*/
package {
import flash.display.*;
import flash.geom.*;
[SWF(backgroundColor=0x00)]
public class Flower extends Sprite{
public function Flower () {
var centerPoint:Point = new Point( 200, 200 );
var radius:Number = 100;
var angle:Number = 0;
var anglePart:Number = 0.2;
var petalRadius:Number = 30;
graphics.lineStyle( 0, 0xFF9900 );
graphics.drawCircle(
Math.cos( angle )*radius + centerPoint.x,
Math.sin( angle )*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFFFF00 );
angle += anglePart;
graphics.drawCircle(
Math.cos(angle)*radius + centerPoint.x,
Math.sin(angle)*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFF9900 );
angle += anglePart;
graphics.drawCircle(
Math.cos( angle )*radius + centerPoint.x,
Math.sin( angle )*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFFFF00 );
angle += anglePart;
graphics.drawCircle(
Math.cos(angle)*radius + centerPoint.x,
Math.sin(angle)*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFF9900 );
angle += anglePart;
graphics.drawCircle(
Math.cos( angle )*radius + centerPoint.x,
Math.sin( angle )*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFFFF00 );
angle += anglePart;
graphics.drawCircle(
Math.cos(angle)*radius + centerPoint.x,
Math.sin(angle)*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFF9900 );
angle += anglePart;
graphics.drawCircle(
Math.cos( angle )*radius + centerPoint.x,
Math.sin( angle )*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFFFF00 );
angle += anglePart;
graphics.drawCircle(
Math.cos(angle)*radius + centerPoint.x,
Math.sin(angle)*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFF9900 );
angle += anglePart;
graphics.drawCircle(
Math.cos( angle )*radius + centerPoint.x,
Math.sin( angle )*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFFFF00 );
angle += anglePart;
graphics.drawCircle(
Math.cos(angle)*radius + centerPoint.x,
Math.sin(angle)*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFF9900 );
angle += anglePart;
graphics.drawCircle(
Math.cos( angle )*radius + centerPoint.x,
Math.sin( angle )*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFFFF00 );
angle += anglePart;
graphics.drawCircle(
Math.cos(angle)*radius + centerPoint.x,
Math.sin(angle)*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFF9900 );
angle += anglePart;
graphics.drawCircle(
Math.cos( angle )*radius + centerPoint.x,
Math.sin( angle )*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFFFF00 );
angle += anglePart;
graphics.drawCircle(
Math.cos(angle)*radius + centerPoint.x,
Math.sin(angle)*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFF9900 );
angle += anglePart;
graphics.drawCircle(
Math.cos( angle )*radius + centerPoint.x,
Math.sin( angle )*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFFFF00 );
angle += anglePart;
graphics.drawCircle(
Math.cos(angle)*radius + centerPoint.x,
Math.sin(angle)*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFF9900 );
angle += anglePart;
graphics.drawCircle(
Math.cos( angle )*radius + centerPoint.x,
Math.sin( angle )*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFFFF00 );
angle += anglePart;
graphics.drawCircle(
Math.cos(angle)*radius + centerPoint.x,
Math.sin(angle)*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFF9900 );
angle += anglePart;
graphics.drawCircle(
Math.cos( angle )*radius + centerPoint.x,
Math.sin( angle )*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFFFF00 );
angle += anglePart;
graphics.drawCircle(
Math.cos(angle)*radius + centerPoint.x,
Math.sin(angle)*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFF9900 );
angle += anglePart;
graphics.drawCircle(
Math.cos( angle )*radius + centerPoint.x,
Math.sin( angle )*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFFFF00 );
angle += anglePart;
graphics.drawCircle(
Math.cos(angle)*radius + centerPoint.x,
Math.sin(angle)*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFF9900 );
angle += anglePart;
graphics.drawCircle(
Math.cos( angle )*radius + centerPoint.x,
Math.sin( angle )*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFFFF00 );
angle += anglePart;
graphics.drawCircle(
Math.cos(angle)*radius + centerPoint.x,
Math.sin(angle)*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFF9900 );
angle += anglePart;
graphics.drawCircle(
Math.cos( angle )*radius + centerPoint.x,
Math.sin( angle )*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFFFF00 );
angle += anglePart;
graphics.drawCircle(
Math.cos(angle)*radius + centerPoint.x,
Math.sin(angle)*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFF9900 );
angle += anglePart;
graphics.drawCircle(
Math.cos( angle )*radius + centerPoint.x,
Math.sin( angle )*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFFFF00 );
angle += anglePart;
graphics.drawCircle(
Math.cos(angle)*radius + centerPoint.x,
Math.sin(angle)*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFF9900 );
angle += anglePart;
graphics.drawCircle(
Math.cos( angle )*radius + centerPoint.x,
Math.sin( angle )*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFFFF00 );
angle += anglePart;
graphics.drawCircle(
Math.cos(angle)*radius + centerPoint.x,
Math.sin(angle)*radius + centerPoint.y,
petalRadius
);
graphics.lineStyle( 0, 0xFF9900 );
angle += anglePart;
graphics.drawCircle(
Math.cos( angle )*radius + centerPoint.x,
Math.sin( angle )*radius + centerPoint.y,
petalRadius
);
}
}
}