A Text-instance represents a continuous text (with line breaks) that can be added to a TextProgram
to display it.
Constructor
new(x:Int, y:Int, text:String, ?textOptions:TextOptions)
Creates a new Text
instance.
Parameters:
x | horizontal position of the top left character |
---|---|
y | vertical position of the top left character |
text | the String representation of the text (can contain "\n" linebreaks) |
textOptions | the |
Variables
options:TextOptions = null
The TextOptions
values to define colors and spacing for the text. If a property is null it is using the value from TextProgram.defaultOptions
.