संदर्भ autoSized()

autoSized()

Toggles the framebuffer's autosizing mode or returns the current mode.

By default, the framebuffer automatically resizes to match the canvas that created it. Calling myBuffer.autoSized(false) disables this behavior and calling myBuffer.autoSized(true) re-enables it.

Calling myBuffer.autoSized() without an argument returns true if the framebuffer automatically resizes and false if not.

उदाहरण

सिंटैक्स

autoSized([autoSized])

पैरामीटर्स

autoSized
Boolean:

whether to automatically resize the framebuffer to match the canvas.

Returns

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

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