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

Method clearColors

src/webgl/p5.Geometry.js:309–312  ·  view source on GitHub ↗

* Removes the geometry’s internal colors. * * `p5.Geometry` objects can be created with "internal colors" assigned to * vertices or the entire shape. When a geometry has internal colors, * fill() has no effect. Calling * `myGeometry.clearColors()` allows the

()

Source from the content-addressed store, hash-verified

307 * }
308 */
309 clearColors() {
310 this.vertexColors = [];
311 return this;
312 }
313
314 /**
315 * The `saveObj()` function exports `p5.Geometry` objects as

Callers 1

regenerateFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected