레퍼런스 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.

예제

구문

clearColors()

매개변수


관련 레퍼런스