MCPcopy
hub / github.com/processing/p5.js / reset

Method reset

src/core/p5.Graphics.js:232–237  ·  view source on GitHub ↗

* Resets the graphics buffer's transformations and lighting. * * By default, the main canvas resets certain transformation and lighting * values each time draw() executes. `p5.Graphics` * objects must reset these values manually by calling `myGraphics.reset()`.

()

Source from the content-addressed store, hash-verified

230 * }
231 */
232 reset() {
233 this._renderer.resetMatrix();
234 if (this._renderer.isP3D) {
235 this._renderer._update();
236 }
237 }
238
239 /**
240 * Removes the graphics buffer from the web page.

Callers 3

_updateMethod · 0.45
resetMatrixMethod · 0.45
beginShapeMethod · 0.45

Calls 2

resetMatrixMethod · 0.45
_updateMethod · 0.45

Tested by

no test coverage detected