resize()

Resizes the framebuffer to a given width and height.

The parameters, width and height, set the dimensions of the framebuffer. For example, calling myBuffer.resize(300, 500) resizes the framebuffer to 300×500 pixels, then sets myBuffer.width to 300 and myBuffer.height 500.

उदाहरण

सिंटैक्स

resize(width, height)

पैरामीटर्स

width
Number:

width of the framebuffer.

height
Number:

height of the framebuffer.

This page is generated from the comments in src/webgl/p5.Framebuffer.js . Please feel free to edit it and submit a pull request!

संबंधित संदर्भ