Class: SystemAnimationFrameElement

SystemAnimationFrameElement

An animation frame element

new SystemAnimationFrameElement ()

Properties:
Name Type Description
x number The x position
y number The y postion
texRow number The texture row
texCol number The texture column
zoom number The zoom value
angle number The angle value
flip boolean Indicate if the texture if flipped
opacity number The opacity value

Methods

read (json)

Read the JSON associated to the animation frame element
Name Type Description
json Object Json object describing the animation frame element

draw (picture, position, rows, cols)

Draw the animation element
Name Type Description
picture Picture2D The picture associated to the animation
position THREE.Vector2 The position on screen for animation
rows rows The number of rows in the animation texture
cols number The number of columns in the animation texture