Trait cushy::animation::Easing

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

Performs easing for value interpolation.

Required Methods§

source

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

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

Implementors§