跳到主要内容

Path.line()

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

Signature

Path path.line(Point to)
提示

This method is chainable as it returns the Path object

Example

Path.line()

Example of the Path.line() method