Class: DrawTextObject

DrawTextObject

Source:
See:

Extends

Members

bgColor :string

Background color as rgba(r,g,b,a).
Overrides:
Source:

boundariesBox :Rectangle

Rectangle text box.
Source:

fillStyle :string

font color
Source:

fillStyle

font color
Source:

font :string

Source:

strokeStyle :string

font stroke color
Source:

strokeStyle

font stroke color
Source:

text :string

Source:

textAlign :string

Source:

textBaseline :string

Source:

textMetrics :TextMetrics

Source:

x :number

Overrides:
Source:

y :number

Overrides:
Source:

Methods

destroy()

Destroy object on next render iteration.
Overrides:
Source:

setMask(mask)

Parameters:
Name Type Description
mask DrawShapeObject
Overrides:
Source:

turnOffOffset()

turn off offset for specific draw object gameStageData.centerCameraPosition() will take no effect on such object Can be used for something that should be always on screen: control buttons, overlay masks etc.
Overrides:
Source: