도형그리기 - Point.polar()
샘플소스) import flash.display.Shape; import flash.display.Graphics; import flash.geom.Point; //원의반경, 면의 갯수, 라인색, 면의 채색여부 function drawPoly(radius:int=100, side:uint=3, lineColor:uint=0xFF00FF, fill:Boolean=false):Shape{ var sh:Shape = new Shape(); var g:Graphics = sh.graphics; if(fill)g.beginFill(0x99CC33, 1); g.lineStyle(2,lineColor,1); g.moveTo(radius,0); var rad:Number = (Math.PI * 2) / side; //..
■ 플래시 ■/Adobe ActionScript3.0
2013. 10. 16. 02:31