marquee

nkrkv/text/marquee

Returns a part of the input string with the given room width and offset to achieve a marquee (crawler line) effect.
marquee
@/marquee
Returns a part of the input string with the given room width and offset to achieve a marquee (crawler line) effect.
INstring
The input string. May be very long. Leading and trailing spaces are not required.
Wnumber
Room width. Usually equal to the number of characters on a display line.
Xnumber
Animation phase expressed as number of characters shifted. Fractions are truncated. Overflows and underflows are wrapped around.
marquee
IN
W
X
OUT
OVF
OVFboolean
Outputs `true` when `X` is larger than the value required to perform a single full run. Use as a condition to stop the animation if you want to display a message just once.
OUTstring
A part of the string to be shown. Has exactly `W` characters in width. If the original content is too short, extra spaces are inserted.
To use the node in your project you should have the nkrkv/text library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.