GITanim loader/render
Note: GIFanim module must be loaded by calling LoadLibrary("gifanim") before using!
- See:
-
- LoadLibrary()
Methods
# inner GIFanim(filename)
load a GIF animation.
Parameters:
Name | Type | Description |
---|---|---|
filename |
string | file name of the GIT to load |
# inner PlayFrame(x, y) → {number}
play the next frame of the animation. Frames are rendered consecutive with each call. It is not possible to directly render a specific frame except by using SkipFrame().
Parameters:
Name | Type | Description |
---|---|---|
x |
number | x position to render the left, upper edge of the animation |
y |
number | y position to render the left, upper edge of the animation |
-1 if this was the last frame, else the delay for the next frame.
number
# inner SkipFrame() → {number}
skip the rendering of a frame.
-1 if this was the last frame, else the delay for the next frame.
number