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

Method _handleResize

src/webgl/p5.Framebuffer.js:522–526  ·  view source on GitHub ↗

* Called when the size of the framebuffer has changed (either by being * manually updated or from auto-size updates when its canvas changes size.) * Old textures and renderbuffers will be deleted, and then recreated with the * new size. * * @private

()

Source from the content-addressed store, hash-verified

520 * @private
521 */
522 _handleResize() {
523 this._deleteTextures();
524 this._recreateTextures();
525 this.defaultCamera._resize();
526 }
527
528 /**
529 * Creates a new

Callers 4

resizeMethod · 0.95
pixelDensityMethod · 0.95
autoSizedMethod · 0.95
_canvasSizeChangedMethod · 0.95

Calls 3

_deleteTexturesMethod · 0.95
_recreateTexturesMethod · 0.95
_resizeMethod · 0.80

Tested by

no test coverage detected