Skip to main content

TextScroll UI Utility

The TextScroll UI utility allows you to display scrolling text with a specified color, speed, and looping option.

The source file for this UI utility is located in os/ui/UIUtilities.h and it's implemented in os/ui/Utilities/TextScroll.cpp.​

Method​

void TextScroll(string ascii, Color color, uint16_t speed = 10, bool loop = false);

Displays scrolling text on the screen with the specified color, speed, and looping option.

Parameters:

  • ascii (string): The text to scroll.
  • color (Color): The color of the scrolling text.
  • speed (uint16_t, optional): The speed of the scrolling text in pixels per frame. Defaults to 10.
  • loop (bool, optional): Whether the text should loop back to the beginning after reaching the end. Defaults to false.

Comments