Struct quicksilver::graphics::Animation[][src]

pub struct Animation { /* fields omitted */ }

A linear series of images with a constant frame delay

Frames advance by discrete ticks, which should be run in the update section of a quicksilver application loop rather than the draw section. Draws may happen as often as possible, whereas updates will have consistent rates

Methods

impl Animation
[src]

Create a new animation from a series of images and a frame delay

Create a new animation from regions of images from a spritesheet

Tick the animation forward by one step

Get the current frame of the animation

Trait Implementations

impl Clone for Animation
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Animation
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for Animation

impl !Sync for Animation