Skip to main content

Path.circleSegment()

The Path.circleSegment() method draws a circle segment starting from the current endpoint of the path around the given origin with a given angle.

A positive angle results in a counter-clockwise arc.

A negative angle results in a clockwise arc.

tip

The new endpoint of this path is the same point that

path.end().rotate(deg, origin)

would return.

Signature

Path path.circleSegment(deg, origin)
tip

This method is chainable as it returns the Path object

Example

→ Path.circleSegment() →

Example of the Path.circleSegment() method