AbstractImageSequence Class

Inheritance diagram of AbstractImageSequence

class AbstractImageSequence

Abstract sequence of images.

The sequence is useful for storing image animations or slices of a volume. For efficient access, use the texture_sequence member. The class also implements the sequence interface (__len__, __getitem__, __setitem__).

Methods:

get_animation(period[, loop]) Create an animation over this image sequence for the given constant framerate.
get_texture_sequence() Get a TextureSequence.

Attributes:

texture_sequence Access this image sequence as a texture sequence.

Methods

AbstractImageSequence.get_animation(period, loop=True)

Create an animation over this image sequence for the given constant framerate.

:Parameters
period : float
Number of seconds to display each frame.
loop : bool
If True, the animation will loop continuously.
Return type:Animation

Note

Since pyglet 1.1

AbstractImageSequence.get_texture_sequence()

Get a TextureSequence.

Return type:TextureSequence

Note

Since pyglet 1.1

Attributes

AbstractImageSequence.texture_sequence

Access this image sequence as a texture sequence.

Warning

Deprecated. Use get_texture_sequence

Type:TextureSequence

Table Of Contents

Previous topic

AbstractImage Class

Next topic

Animation Class