Class: DrawShapeObject

DrawShapeObject

A base draw object.

Members

bgColor :string

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

id :number

Source:

isRemoved :boolean

Source:

rotation :number

Source:

sortIndex :number

Source:

type :string

Source:

x :number

Source:

y :number

Source:

Methods

destroy()

Destroy object on next render iteration.
Source:

setMask(mask)

Parameters:
Name Type Description
mask DrawShapeObject
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.
Source: