pub enum AnimationState {
    Move(f64ScalarScalarScalarScalarf64),
    Rotate(f64ScalarScalarf64),
    Scale(f64ScalarScalarScalarScalarf64),
    Flip(boolbool),
    Visibility(bool),
    Blink(f64f64usizeusize),
    Fade(f64f64f64f64),
    Ease(EaseFunctionBox<AnimationState>),
}
Expand description

The state of animation

Variants

Move(f64ScalarScalarScalarScalarf64)

time, begin_x, begin_y, change_x, change_y, duration

Rotate(f64ScalarScalarf64)

time, begin, change, duration

Scale(f64ScalarScalarScalarScalarf64)

time, begin_x, begin_y, change_x, change_y, duration

Flip(boolbool)

flip_x, flip_y

Visibility(bool)

visible

past_time, duration, blinked_times, total_times

Fade(f64f64f64f64)

time, begin, change, duration

Ease(EaseFunctionBox<AnimationState>)

ease_function, animation

Implementations

Update the state and change the sprite’s properties

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.