arc(cx, cy, radius, startAngle, endAngle, anticlockwise, segments) → {PIXI.Graphics}
The arc method creates an arc/curve (used to create circles, or parts of circles).
Parameters
Name | Type | Description |
---|---|---|
cx | Number | The x-coordinate of the center of the circle |
cy | Number | The y-coordinate of the center of the circle |
radius | Number | The radius of the circle |
startAngle | Number | The starting angle, in radians (0 is at the 3 o'clock position of the arc's circle) |
endAngle | Number | The ending angle, in radians |
anticlockwise | Boolean | Optional. Specifies whether the drawing should be counterclockwise or clockwise. False is default, and indicates clockwise, while true indicates counter-clockwise. |
segments | Number | Optional. The number of segments to use when calculating the arc. The default is 40. If you need more fidelity use a higher number. |
Returns
- Inherited From
- Source code: pixi/primitives/Graphics.js (Line 405)
Please login to continue.