ArduinoGraphics - fill()

Description

Set the fill color of drawing operations.

Syntax

YourScreen.fill(r, g, b)
YourScreen.fill(color)

Parameters

  • r: red color value (0 - 255)
  • g: green color value (0 - 255)
  • b: blue color value (0 - 255)
  • color: 24-bit RGB color, 0xrrggbb

Returns

Nothing

Example

YourScreen.beginDraw();
YourScreen.clear();
YourScreen.noStroke();
YourScreen.fill(255, 255, 0);
YourScreen.rect(0, 0, YourScreen.width(), YourScreen.height());
YourScreen.endDraw();