PixbufSimpleAnim
Superclasses: PixbufAnimation
, Object
An opaque struct representing a simple animation.
Constructors
- class PixbufSimpleAnim
- classmethod new(width: int, height: int, rate: float) PixbufSimpleAnim
Creates a new, empty animation.
Added in version 2.8.
- Parameters:
width – the width of the animation
height – the height of the animation
rate – the speed of the animation, in frames per second
Methods
- class PixbufSimpleAnim
- add_frame(pixbuf: Pixbuf) None
Adds a new frame to
animation
. Thepixbuf
must have the dimensions specified when the animation was constructed.Added in version 2.8.
- Parameters:
pixbuf – the pixbuf to add