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

Method _updateSize

src/webgl/p5.Framebuffer.js:493–499  ·  view source on GitHub ↗

* A method that will be called when recreating textures. If the framebuffer * is auto-sized, it will update its width, height, and density properties. * * @private

()

Source from the content-addressed store, hash-verified

491 * @private
492 */
493 _updateSize() {
494 if (this._autoSized) {
495 this.width = this.renderer.width;
496 this.height = this.renderer.height;
497 this.density = this.renderer._pixelDensity;
498 }
499 }
500
501 /**
502 * Called when the canvas that the framebuffer is attached to resizes. If the

Callers 1

_recreateTexturesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected