Enum sprite::AnimationState [] [src]

pub enum AnimationState {
    Move(f64, Scalar, Scalar, Scalar, Scalar, f64),
    Rotate(f64, Scalar, Scalar, f64),
    Scale(f64, Scalar, Scalar, Scalar, Scalar, f64),
    Flip(boolbool),
    Visibility(bool),
    Blink(f64f64usizeusize),
    Fade(f64f64f64f64),
    Ease(EaseFunctionBox<AnimationState>),
}

The state of animation

Variants

Move(f64, Scalar, Scalar, Scalar, Scalar, f64)

time, begin_x, begin_y, change_x, change_y, duration

Rotate(f64, Scalar, Scalar, f64)

time, begin, change, duration

Scale(f64, Scalar, Scalar, Scalar, Scalar, f64)

time, begin_x, begin_y, change_x, change_y, duration

Flip(boolbool)

flip_x, flip_y

Visibility(bool)

visible

Blink(f64f64usizeusize)

past_time, duration, blinked_times, total_times

Fade(f64f64f64f64)

time, begin, change, duration

Ease(EaseFunctionBox<AnimationState>)

ease_function, animation

Methods

impl AnimationState
[src]

fn update<I: ImageSize>(&self, sprite: &mut Sprite<I>, dt: f64) -> (Option<AnimationState>, Status, f64)

Update the state and change the sprite's properties

Trait Implementations

impl Clone for AnimationState
[src]

fn clone(&self) -> AnimationState

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more