MCPcopy Index your code
hub / github.com/processing/p5.js / autoSized

Method autoSized

src/webgl/p5.Framebuffer.js:336–343  ·  view source on GitHub ↗

* 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. *

(autoSized)

Source from the content-addressed store, hash-verified

334 * }
335 */
336 autoSized(autoSized) {
337 if (autoSized === undefined) {
338 return this._autoSized;
339 } else {
340 this._autoSized = autoSized;
341 this._handleResize();
342 }
343 }
344
345 /**
346 * Checks the capabilities of the current WebGL environment to see if the

Callers 2

p5.Framebuffer.jsFile · 0.80
p5.Framebuffer.jsFile · 0.80

Calls 1

_handleResizeMethod · 0.95

Tested by

no test coverage detected