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(bool, bool), Visibility(bool), Blink(f64, f64, usize, usize), Fade(f64, f64, f64, f64), Ease(EaseFunction, Box<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(bool, bool)
flip_x, flip_y
Visibility(bool)
visible
Blink(f64, f64, usize, usize)
past_time, duration, blinked_times, total_times
Fade(f64, f64, f64, f64)
time, begin, change, duration
Ease(EaseFunction, Box<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