ArduinoGraphics - clear()

Description

Clear the screen contents or a specific pixel, uses the background colour set in background().

Syntax

YourScreen.clear()
YourScreen.clear(x, y)

Parameters

  • x: x position of the pixel to clear
  • y: y position of the pixel to clear

Returns

Nothing

Example

YourScreen.beginDraw();
YourScreen.background(255, 0, 0);
YourScreen.clear();
YourScreen.endDraw();