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>),
}
time, begin_x, begin_y, change_x, change_y, duration
time, begin, change, duration
time, begin_x, begin_y, change_x, change_y, duration
past_time, duration, blinked_times, total_times
time, begin, change, duration
Update the state and change the sprite's properties
Performs copy-assignment from source
. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static