Available since LÖVE 0.10.0
This function is not supported in earlier versions.
Replaces the contents of the Text object with a new unformatted string.
Text:set( textstring )
string textstring
Nothing.
Text:set( coloredtext )
table coloredtext
{color1, string1, color2, string2, ...}
. table color1
{red, green, blue, alpha}
.string string1
table color2
{red, green, blue, alpha}
.string string2
tables and strings ...
Nothing.
The color set by love.graphics.setColor will be combined (multiplied) with the colors of the text, when drawing the Text object.
Clears the contents of the Text object.
Text:set( )
None.
Nothing.
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Text:set