Reference   Language | Libraries | Comparison | Changes

ArduinoGraphics : ArduinoGraphics class

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

See Also



Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.