Skip to content

textmode.js / TextmodeFramebuffer / resize

Method: resize() ​

ts
resize(width, height): void;

Resize the framebuffer and all attached textures.

Existing pixel cache entries are cleared, and the optional depth renderbuffer is resized to match the new dimensions.

Parameters ​

ParameterTypeDescription
widthnumberNew framebuffer width in grid cells.
heightnumberNew framebuffer height in grid cells.

Returns ​

void

Example ​