Set Animation Background Frame
\i g b F byte::anim_loc word::frame
| Parameter |
Type |
Range |
Description |
| anim_loc |
byte |
0 ... 7 |
index of the animation control |
| frame |
word |
0 ... number of frames - 1 |
background frame of the animation |
Specifies the frame frame as background for the animation engine anim_loc.
Note
- When a background frame is assigned to an animation control, every frame is restored to the underlying part of the background before the next one is drawn.
- As soon as a background frame is assigned, this frame will be skipped in running animations. It can still be set manually though (refer to Stop Animation and Set Frame Number).
- If the background frame doesn't cover the entire animation area, only the part where the areas of the background and the previous frame overlap will be restored.
- If the animation was never drawn before, the whole animation area is filled with the background frame before the first frame is drawn.
- Restoring frames to background allows an animation to run backwards (refer to Move Animation To Frame), but slows it down a bit.
- The background is restored to the assigned background frame when using the commands Erase Animation Image Area or Erase Animation Frame Area as well.
- If anim_loc has never been loaded with an animated graphic before, a [NACK] is returned.
- Find general information about animated graphics in chapter LCD Graphics Commands.
This will specify frame #12 as the background frame for animation control #5.
Not supported by: DPC3020, DPC2060, DPC10xx
See also:
Copyright © demmel products gmbh. All rights reserved.