Interface for a sequence of textures.
Typical implementations store multiple TextureRegion s within one Texture so as to minimise state changes.
Methods:
get_animation(period[, loop]) Create an animation over this image sequence for the given constant framerate. get_texture_sequence()
Attributes:
texture_sequence Access this image sequence as a texture sequence.
Methods
- TextureSequence.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
Attributes
- TextureSequence.texture_sequence
Access this image sequence as a texture sequence.
Warning
Deprecated. Use get_texture_sequence
Type: TextureSequence