레퍼런스 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

whether to automatically resize the framebuffer to match the canvas.

Notice any errors or typos? Please let us know. Please feel free to edit src/webgl/p5.Framebuffer.js and open a pull request!

관련 레퍼런스