Reference   Language | Libraries | Comparison | Changes

ArduinoGraphics : ArduinoGraphics class

beginText()

Description

Start the process of displaying and optionally scrolling text. The Print interface can be used to set the text.

Syntax

YourScreen.beginText()
YourScreen.beginText(x, y, r, g, b)
YourScreen.beginText(x, y, color)

Parameters

  • x: x position of the text
  • y: y position of the text
  • 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.beginText(0, 0, 127, 0, 0);
YourScreen.print("Hi");
YourScreen.endText();

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.