ArduinoGraphics - background()

Description

Set the background color of drawing operations. Used when calling clear() or drawing text.

Syntax

YourScreen.background(r, g, b)
YourScreen.background(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.background(255, 0, 0);
YourScreen.clear();
YourScreen.endDraw();