pub struct TweenTimeline {
pub tracks: HashMap<String, TweenSequence<f32>>,
pub elapsed: f32,
pub looping: bool,
pub done: bool,
/* private fields */
}Expand description
Multiple named f32 animation tracks running in parallel.
Each track is an independent TweenSequence<f32>.
Access current values by name each frame.
Fields§
§tracks: HashMap<String, TweenSequence<f32>>§elapsed: f32§looping: bool§done: boolImplementations§
Source§impl TweenTimeline
impl TweenTimeline
Source§impl TweenTimeline
impl TweenTimeline
Sourcepub fn damage_flash(intensity: f32) -> Self
pub fn damage_flash(intensity: f32) -> Self
Build a damage flash timeline: screen red flash + slight scale pop.
Sourcepub fn boss_entrance() -> Self
pub fn boss_entrance() -> Self
Build a boss entrance timeline: dark vignette crunch → reveal.
Sourcepub fn death_sequence() -> Self
pub fn death_sequence() -> Self
Build a death sequence: drain color, crush vignette, fade to black.
Sourcepub fn heal_pulse(amount_fraction: f32) -> Self
pub fn heal_pulse(amount_fraction: f32) -> Self
Build a healing pulse: green tint flash + brightness glow.
Auto Trait Implementations§
impl Freeze for TweenTimeline
impl RefUnwindSafe for TweenTimeline
impl Send for TweenTimeline
impl Sync for TweenTimeline
impl Unpin for TweenTimeline
impl UnsafeUnpin for TweenTimeline
impl UnwindSafe for TweenTimeline
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more