@Maedd wrote:
Hey,
I would like to change the color of a mesh to a specific color and then return to the original color. My problem is that most of the vertices have different colors to start with.
I managed to change it to a specific color, but I cant find a way to return to the original color.
What would be a good way to morph back and forth between the two states of color?
Thank you!for(int i = 0; i < mesh.getNumColors(); i = i+10){ mesh.getColors()[i]; mesh.setColor(i, ofFloatColor(0.2, 0.3, 0.4)); // Also tried something like this, but its not working: // ofColor c = mesh2.getColors()[i]; // c.r = 0; c.g = 0; c.b = 0; // mesh2.addColor(c); }
Posts: 1
Participants: 1