gale.animation module
This file contains the implementation of the class Animation: steps through a sequence of frames at a fixed time interval, with an optional loop count.
Author: Alejandro Mujica (aledrums@gmail.com)
- class gale.animation.Animation(frames, time_interval=0, loops=None, on_finish=None)[source]
Bases:
objectThis class represents animations as a sequence of frames. Those frames change in a given time interval.
- Parameters:
frames (Sequence[Any])
time_interval (float)
loops (int | None)
on_finish (Callable[[], None] | None)