textmode.js / Textmodifier / line
Method: line()
ts
line(
x1,
y1,
x2,
y2): void;Draw a line from (x1, y1) to (x2, y2).
Parameters
| Parameter | Type | Description |
|---|---|---|
x1 | number | Start X coordinate in grid cells. |
y1 | number | Start Y coordinate in grid cells. |
x2 | number | End X coordinate in grid cells. |
y2 | number | End Y coordinate in grid cells. |
Returns
void