cushy::animation

Trait Easing

pub trait Easing:
    Debug
    + Send
    + Sync
    + 'static {
    // Required method
    fn ease(&self, progress: f32) -> f32;
}
Expand description

Performs easing for value interpolation.

Required Methods§

fn ease(&self, progress: f32) -> f32

Eases a value ranging between zero and one. The resulting value does not need to be bounded between zero and one.

Implementors§