Skip to main content

Path.curve()

The Path.curve() method draws a cubic Bézier curve from the current position via two control points to a given endpoint.

Signature

Path path.curve(Point cp1, Point cp2, Point to)
tip

This method is chainable as it returns the Path object

Example

Path.curve()

Example of the Path.curve() method