translate

fun translate(tx: Float, ty: Float)

Moves the position of the text by the specified amount.

Parameters

tx

the amount to move the x position

ty

the amount to move the y position