-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Package: STL
Class: CanvasDisplayObject
name: String
The name of the object
x: Integer
The x position of the object
y: Integer
The y position of the object
rotation: Float
The rotation of the object in radians
scaleX: Float
The scale of the object on the x axis
scaleY: Float
The scale of the object on the y axis
visible: Boolean
Sets the visibility of the object
alpha: Float
Sets the alpha opacity of the object
parent: CanvasDisplayObject
Sets the parent of the object
extra: Object
An object for saving any kind of values
addChild(child:CanvasDisplayObject):void
Adds a CanvasDisplayObject child into another CanvasDisplayObject
removeChild(child:CanvasDisplayObject):void
Removes a CanvasDisplayObject child from another CanvasDisplayObject
getChildren():Array
Returns an array with all the children of a CanvasDisplayObject
update(ctx:CanvasContext):void
Responsible for doing all the rotation, scaling and translation of the object