Skip to main content
Version: Next

Line

Draws a line on the canvas from a starting point to an ending point.

Parameters

NameTypeDescription
xNumberThe x-coordinate of the starting point.
yNumberThe y-coordinate of the starting point.
x2NumberThe x-coordinate of the ending point.
y2NumberThe y-coordinate of the ending point.

Example

Line(x: 10, y: 10, x2: 90, y2: 90)