GSDP:GAM100/CProcessing/fill()
From Inside
< GSDP:GAM100 | CProcessing
fill()
Description
The function fill() sets the color of the next drawn shape or text.
Parameters
fillColor(PColor color)
- color - (PColor) the color of the next shape
Example
void update()
{
// Create the color blue
PColor myColor = color(0, 0, 255, 255);
// Set the shape color to blue
fill(myColor);
// Draw a rectangle at the origin
rect(0, 0, 10.0f, 10.0f);
}