Skip to main content

Flipbook

Stores data for an animated flipbook to be rendered to the screen, and play back animations.

Internally, any Flipbook will also have a Sprite.

struct Flipbook {
// from native code
mirrored_x: bool
}

Fields

mirrored_x

mirrored_x: bool

Methods

start

fn start(self, name: AnimationName, params: AnimationParams)

Start playing an animation, with the specified params.

stop

fn stop(self)

Stop any active animations on this Flipbook.

is_playing

fn is_playing(self, name: AnimationName) -> bool