actionscript 3 - using action script how to draw a semi circle -


How to draw a cm circle using the action script ... I need to add a semicolon to another circle, The circle looks like this! [Alt text] [1]

How to draw a semi-circle inside that circle

< P> Use the following function to attract the required arc.

function drawArc (centerX, centerY, radius, startup group, arcangle, phase) {startAngle - = .25; Var two pi = 2 * monastery PI; Var angleStep = arcAngle / steps; Var xx = centerX + Math.cos (startAngle * 2 PI) * Radius; Var yy = centerY + math sin (startAngle * twoPI) * radius; Move (xx, yy); For {var i = 1; i & lt; = steps; i ++} {var angle = startAngle + i * angleStep; Xx = centerX + Mathos (angle * two pi) * radius; Yy = centerY + Math.sin (angle * two pi) * radius; From line (xx, yy); }} Line style (0, 0xFF0000); Draw ARC (250, 250, 200, 45/360, -90/360, 20);

semicolon? It is not well to join the end points. Use Lineto.


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -