pub struct Tweens;Expand description
Convenience methods for common tween patterns.
Implementations§
Source§impl Tweens
impl Tweens
pub fn fade_in(duration: f32) -> Tween<f32>
pub fn fade_out(duration: f32) -> Tween<f32>
pub fn bounce_in(from: Vec3, to: Vec3, duration: f32) -> Tween<Vec3>
pub fn elastic_pop(from: f32, to: f32, duration: f32) -> Tween<f32>
pub fn camera_slide(from: Vec3, to: Vec3, duration: f32) -> Tween<Vec3>
pub fn damage_number_rise( origin: Vec3, height: f32, duration: f32, ) -> Tween<Vec3>
pub fn color_flash(base: Vec4, flash: Vec4, duration: f32) -> Tween<Vec4>
pub fn shake_decay(intensity: f32, duration: f32) -> Tween<f32>
pub fn health_bar(from: f32, to: f32, duration: f32) -> Tween<f32>
pub fn pulse(amplitude: f32, rate: f32) -> Tween<f32>
Auto Trait Implementations§
impl Freeze for Tweens
impl RefUnwindSafe for Tweens
impl Send for Tweens
impl Sync for Tweens
impl Unpin for Tweens
impl UnsafeUnpin for Tweens
impl UnwindSafe for Tweens
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.