textmode.js / Textmodifier / rect
Method: rect()
ts
rect(width?, height?): void;Draw a rectangle with the current settings. Position is controlled via translate, push, and pop.
Parameters
| Parameter | Type | Description |
|---|---|---|
width? | number | Rectangle width in grid cells. Defaults to 1. |
height? | number | Rectangle height in grid cells. Defaults to 1. |
Returns
void