addText

fun addText(text: String, x: Float, y: Float, pxSize: Int, maxWidth: Float = 0.0f, align: HAlign = HAlign.LEFT, wrap: Boolean = false, rotation: Angle = Angle.ZERO, color: Color = Color.BLACK, font: TtfFont = defaultFont)

Draws the specified string of text at the specified location and rotation.

Parameters

text

the string of text to draw

x

the x coord position

y

the y coord position

pxSize

the size of text in pixels

rotation

the rotation to draw the text

color

the color of the text