Line
Draws a line on the canvas from a starting point to an ending point.
Parameters
| Name | Type | Description |
|---|---|---|
x | Number | The x-coordinate of the starting point. |
y | Number | The y-coordinate of the starting point. |
x2 | Number | The x-coordinate of the ending point. |
y2 | Number | The y-coordinate of the ending point. |
Example
Line(x: 10, y: 10, x2: 90, y2: 90)