beautypg.com

9 animations – Matrix Orbital GTT70A User Manual

Page 32

background image

Command Summary

28

2.9 Animations

9.1 Set Up
Animation

Dec
Hex
ASCII

254 193

FE C1

ю Б

Index Instance X Y
Index Instance X Y
Index Instance X Y

2.0

Define a region of the screen to be used to display a loaded animation. If an animation is already in use at that
index it will be overwritten. Use the start animation command to display and play the file.

Index

Byte

Index used to identify the desired file in the animation buffer.

Instance

Byte

Index used to identify the state of a specific animation instance.

X

Signed Short

Leftmost coordinate.

Y

Signed Short

Topmost coordinate.

9.2 Start/Stop
Animation

Dec
Hex
ASCII

254 194

FE C2

ю В

Instance State
Instance State
Instance State

2.0

Start or stop a specific animation. After it is started, an animation will loop until stopped.

Instance

Byte

Index of a previously defined Animation instance to be started/stopped.

State

Byte

Desired animation state, as per eAnimationState values.

Table 23: eAnimationState values

Value Description

0

Paused

1

Playing

9.3 Set
Animation
Frame

Dec
Hex
ASCII

254 195

FE C3

ю Г

Instance Frame
Instance Frame
Instance Frame

2.0

Set the current frame of a displayed animation. If the frame exceeds the total number present, the animation will
be set to the first frame.

Instance

Byte

Index of a previously defined Animation instance whose frame will be changed.

Frame

Byte

Number of the frame to be displayed.

9.4 Get
Animation
Frame

Dec
Hex
ASCII

254 196

FE C4

ю Д

Instance
Instance
Instance

2.0

Read the current frame of the specified animation instance.

Instance

Byte

Animation instance upon which the current frame query will be carried out.

Return Message

252 196 Length

Frame

Frame

Byte

Current animation frame.

This manual is related to the following products: