pub struct Anim {
pub duration: f64,
pub chain: bool,
pub tracks: &'static [Track],
}
Expand description
An actual animation that can be played.
Fields
duration: f64
The time it should take for this animation to complete, in seconds.
chain: bool
If set, this animation will get queued up if there is an existing animation playing.
tracks: &'static [Track]
The actual tracks of values that will change during this animation.
Should remain consistent between the different animations that you pass
into a single Animator
.
TODO(JP): Allow for dynamically defined animations: https://github.com/Zaplib/zaplib/issues/167
Implementations
TODO(JP): Replace these with Anim::default() when https://github.com/rust-lang/rust/issues/67792 gets done
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Anim
impl UnwindSafe for Anim
Blanket Implementations
Mutably borrows from an owned value. Read more