I have been playing with cos and sin functions and I understand how to plot items around a circle and also make them move in a circular movement. But what I'm not understanding and can't seem to find much about it is how to achieve swirls and moveclip placements like this image.
Here is what I have been trying but its nowhere like the image is showing.
Can someone please help shine some light how I can plot my items positions like the image with cos and sin.Code:private function init( evt : Event ) : void { centerX = stage.stageWidth / 2; centerY = stage.stageHeight / 2; for( var i : int = 0; i < 20; i++ ){ var circ : Shape = new Shape(); circ.graphics.beginFill(0x333333); circ.graphics.drawCircle(0, 0, 20 ); circ.x = centerX + i * Math.cos(i) * 70; circ.y = centerY + i * Math.sin(i) * 70; //circ.rotation = i * 12; addChild(circ); } }
Thank,





Reply With Quote