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

Method reset

src/webgl/p5.DataArray.js:40–43  ·  view source on GitHub ↗

* A full reset, which allocates a new underlying Float32Array at its initial * length

()

Source from the content-addressed store, hash-verified

38 * length
39 */
40 reset() {
41 this.clear();
42 this.data = new Float32Array(this.initialLength);
43 }
44
45 /**
46 * Adds values to the DataArray, expanding its internal storage to

Callers

nothing calls this directly

Calls 1

clearMethod · 0.95

Tested by

no test coverage detected