跳到主要内容

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.

提示

The new endpoint of this path is the same point that

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

would return.

Signature

Path path.circleSegment(deg, origin)
提示

This method is chainable as it returns the Path object

Example

→ Path.circleSegment() →

Example of the Path.circleSegment() method