.wrapText(characters)

Description

Wraptext takes a string in real time and wraps it to a set number of characters

Parameters

Wraptext needs the number of characters to limit each line to

Usage On Strings

num = "hello world, im doing pretty well"

log num.wrapText(15)
// hello world, im
// doing pretty
// well

// it inserts newlines into the string so that the text never goes over the limit but also so that the words arent split halfway through

Last updated