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

Method clear

src/webgl/p5.DataArray.js:19–21  ·  view source on GitHub ↗

* A "soft" clear, which keeps the underlying storage size the same, but * empties the contents of its dataArray()

()

Source from the content-addressed store, hash-verified

17 * empties the contents of its dataArray()
18 */
19 clear() {
20 this.length = 0;
21 }
22
23 /**
24 * Can be used to scale a DataArray back down to fit its contents.

Callers 15

resetMethod · 0.95
instance.tsFile · 0.45
drawFunction · 0.45
makeSketchFunction · 0.45
testImageRenderFunction · 0.45
loading.jsFile · 0.45
p5.Framebuffer.jsFile · 0.45
drawCircleFunction · 0.45
testShapeFunction · 0.45
p5.RendererGL.jsFile · 0.45
startDrawFunction · 0.45
testBlendFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected