Skip to main content

Path.line()

The Path.line() method draws a straight line from the current position to a given point.

Signature

Path path.line(Point to)
tip

This method is chainable as it returns the Path object

Example

Path.line()

Example of the Path.line() method