TextVisual

fun TextVisual(    text: String,     font: Font = Font(),     alignment: Alignment = Alignment.CENTER,     offsetX: Number = 0,     offsetY: Number = 0)

Creates a TextVisual with given text.

Parameters

text

Text to display.

font

Font to be used for the text. Default: default Font constructor.

alignment

Alignment for the text. Default: Alignment.CENTER.

offsetX

The horizontal offset of the text from its anchorpoint. Default: 0.

offsetY

The vertical offset of the text from its anchorpoint. Default: 0.