ArduinoGraphics - text()

Description

Draw some text, uses the stroke color set in stroke() and the background color set in background().

Syntax

YourScreen.text(string)
YourScreen.text(string, x, y)

Parameters

  • string: string to draw
  • x: x position for the start of the text
  • y: y position for the start of the text

Returns

Nothing

Example

YourScreen.beginDraw();
YourScreen.clear();
YourScreen.stroke(255, 255, 255);
YourScreen.text("abc", 0, 1);
YourScreen.endDraw();