Skip to content

Graphics.arc method

Graphics › arc

Unofficial

Draws an arc.

Signature:

arc(cx: number, cy: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean | undefined): this

Parameters:

ParameterTypeDescription
cxnumberCenter X.
cynumberCenter Y.
radiusnumberArc radius.
startAnglenumberStart angle in radians.
endAnglenumberEnd angle in radians.
anticlockwise?boolean | undefinedWhether to draw anticlockwise.

Returns: thisThis graphics for chaining.