Skip to content

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 ​

ParameterTypeDescription
width?numberRectangle width in grid cells. Defaults to 1.
height?numberRectangle height in grid cells. Defaults to 1.

Returns ​

void

Example ​