line(x0, y0, x1, y1) or line({x0, y0, x1, y1}) or line(p1, p2)
Draw a 1-pixel wide line. Can take 4 coordinates, an object with coordinates, or two points.
| Name | Type | Required | Description |
|---|---|---|---|
x0, y0, x1, y1 |
number | no | Line start and end coordinates. |
p1, p2 |
point | no | Alternative point-object form. |
void
No additional runtime notes yet.
No additional details yet.