Graphics.arc method
Graphics › arc
Unofficial
Draws an arc.Signature:
arc(cx: number, cy: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean | undefined): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| cx | number | Center X. |
| cy | number | Center Y. |
| radius | number | Arc radius. |
| startAngle | number | Start angle in radians. |
| endAngle | number | End angle in radians. |
| anticlockwise? | boolean | undefined | Whether to draw anticlockwise. |
Returns: this — This graphics for chaining.