documentation index ◦ reference manual ◦ function index

# Animation

Function: | Animation | (*args, **properties):

A Displayable that draws an animation, which is a series of images that are displayed with time delays between them.

Odd (first, third, fifth, etc.) arguments to Animation are interpreted as image filenames, while even arguments are the time to delay between each image. If the number of arguments is odd, the animation will stop with the last image (well, actually delay for a year before looping). Otherwise, the animation will restart after the final delay time.

anim_timebase - If True, the default, use the animation timebase. Otherwise, use the displayable timebase.

## Example

    init:
        image animation = Animation("frame_1.png", 0.25,
                                    "frame_2.png", 0.25,
                                    "frame_3.png", 0.25)

documentation index ◦ reference manual ◦ function index