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

Javascript
Path path.curve(Point cp1, Point cp2, Point to)
TIP|

This method is chainable as it returns the Path object

Example

Path.curve()