Back

CreateText

Hello World
Content:
- Methods

.

txt = gfx.CreateText( text, fontSize, fontFile, align, callback ) → unknown

Methods

The following methods are available on the Text object:

alignstring
alphanumber: fraction (0..1)
anglenumber: fraction (0..1)
Contains( x, y ) → boolean
filestring
fontSizenumber
heightnumber: fraction (0..1)
pivotXnumber: fraction (0..1)
pivotYnumber: fraction (0..1)
scaleXnumber: factor
scaleYnumber: factor
Update()
visibleboolean
widthnumber
number
string
unknown
number: fraction (0..1)
app object: Matrix
function()
The objects alpha value
The rotation fraction of the object
txt.Contains
Checks if a point is contained in the sprite
The height of the object
The x pivot for rotations
The y pivot for rotations
The horizontal scaling
The vertical scaling
txt.SetMatrix
Set the individual 2d transformation
txt.Update
Updates internal properties
Indicates the objects visibility state
The obects width