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:

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: thisThis graphics for chaining.