GSDP:GAM100/CProcessing/fill()

From Inside
Jump to: navigation, search

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);
}

Related

Personal tools
Namespaces

Variants
Actions
Navigation
NameSpaces:>
Tools
Dynamic:>