Trait suzy::animation::Easing[][src]

pub trait Easing {
    fn ease(&self, t: f32) -> f32;
}

A trait which represents an easing function.

Easing functions transform the time value for an animation. This usually corosponds to a visual acceleration at the start of an animation or a visual deceleration at the end of an animation, but may involve other effects.

Required methods

fn ease(&self, t: f32) -> f32[src]

Transform the time value according to this easing definition.

Loading content...

Implementors

impl Easing for CubicPoly[src]

Loading content...