Reference clearColors()

clearColors()

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 fill() function to apply color to the geometry.

Examples

Notice any errors or typos? Please let us know. Please feel free to edit src/webgl/p5.Geometry.js and open a pull request!

Related References