pub struct Ease {}
Expand description
Easing functions that can be used to animate values. For a cheat sheet, see http://easings.net.
Implementations
sourceimpl Ease
impl Ease
pub const PI_HALF: f32 = 1.57079637f32
pub const PI2: f32 = 6.28318548f32
pub const B1: f32 = 0.363636374f32
pub const B2: f32 = 0.727272749f32
pub const B3: f32 = 0.545454562f32
pub const B4: f32 = 0.909090936f32
pub const B5: f32 = 0.818181812f32
pub const B6: f32 = 0.954545438f32
pub const ELASTIC_AMPLITUDE: f32 = 1f32
pub const ELASTIC_PERIOD: f32 = 0.400000006f32
sourcepub fn quad_in_out(t: f32) -> f32
pub fn quad_in_out(t: f32) -> f32
Quadratic in and out.
sourcepub fn quad_out_in(t: f32) -> f32
pub fn quad_out_in(t: f32) -> f32
Quadratic out and in
sourcepub fn cube_in_out(t: f32) -> f32
pub fn cube_in_out(t: f32) -> f32
Cubic in and out.
sourcepub fn cube_out_in(t: f32) -> f32
pub fn cube_out_in(t: f32) -> f32
Cubic out and in.
sourcepub fn quart_in_out(t: f32) -> f32
pub fn quart_in_out(t: f32) -> f32
Quartic in and out.
sourcepub fn quart_out_in(t: f32) -> f32
pub fn quart_out_in(t: f32) -> f32
Quartic out and in
sourcepub fn quint_in_out(t: f32) -> f32
pub fn quint_in_out(t: f32) -> f32
Quintic in and out.
sourcepub fn quint_out_in(t: f32) -> f32
pub fn quint_out_in(t: f32) -> f32
Quintic out and in.
sourcepub fn sine_in_out(t: f32) -> f32
pub fn sine_in_out(t: f32) -> f32
Sine in and out.
sourcepub fn sine_out_in(t: f32) -> f32
pub fn sine_out_in(t: f32) -> f32
Sine out and in.
sourcepub fn bounce_out(t: f32) -> f32
pub fn bounce_out(t: f32) -> f32
Bounce out.
sourcepub fn bounce_in_out(t: f32) -> f32
pub fn bounce_in_out(t: f32) -> f32
Bounce in and out.
sourcepub fn circ_in_out(t: f32) -> f32
pub fn circ_in_out(t: f32) -> f32
Circle in and out.
sourcepub fn circ_out_in(t: f32) -> f32
pub fn circ_out_in(t: f32) -> f32
Circle out and in.
sourcepub fn expo_in_out(t: f32) -> f32
pub fn expo_in_out(t: f32) -> f32
Exponential in and out.
sourcepub fn expo_out_in(t: f32) -> f32
pub fn expo_out_in(t: f32) -> f32
Exponential out and in.
sourcepub fn back_in_out(t: f32) -> f32
pub fn back_in_out(t: f32) -> f32
Back in and out.
sourcepub fn elastic_in(t: f32) -> f32
pub fn elastic_in(t: f32) -> f32
Elastic in.
sourcepub fn elastic_out(t: f32) -> f32
pub fn elastic_out(t: f32) -> f32
Elastic out.
sourcepub fn elastic_in_out(t: f32) -> f32
pub fn elastic_in_out(t: f32) -> f32
Elastic in and out.
Auto Trait Implementations
impl RefUnwindSafe for Ease
impl Send for Ease
impl Sync for Ease
impl Unpin for Ease
impl UnwindSafe for Ease
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.