textmode.js / Textmodifier / triangle
Method: triangle()
ts
triangle(
x1,
y1,
x2,
y2,
x3,
y3): void;Draw a triangle with the current settings.
Parameters
| Parameter | Type | Description |
|---|---|---|
x1 | number | First vertex X coordinate in grid cells. |
y1 | number | First vertex Y coordinate in grid cells. |
x2 | number | Second vertex X coordinate in grid cells. |
y2 | number | Second vertex Y coordinate in grid cells. |
x3 | number | Third vertex X coordinate in grid cells. |
y3 | number | Third vertex Y coordinate in grid cells. |
Returns
void