Trait HistPrimEaseExt

Source
pub trait HistPrimEaseExt<S, T: PartialEq + Clone + Add<T, Output = T> + Sub<T, Output = T> + Mul<S, Output = T> + 'static> {
    // Required method
    fn set_ease(&self, a: &Animator, end: T, duration: S, f: fn(S) -> S);
}
Expand description

Adds the method set_ease for animation to HistPrim to parallel set. duration is in milliseconds. f is a function that takes an input of 0..1 representing linear progress of the easing and returns another 0..1 representing the eased visual progress, as the methods in ezing.

Required Methods§

Source

fn set_ease(&self, a: &Animator, end: T, duration: S, f: fn(S) -> S)

Implementors§

Source§

impl<T: PartialEq + Clone + Add<T, Output = T> + Sub<T, Output = T> + Mul<f32, Output = T> + 'static> HistPrimEaseExt<f32, T> for HistPrim<T>

Source§

impl<T: PartialEq + Clone + Add<T, Output = T> + Sub<T, Output = T> + Mul<f64, Output = T> + 'static> HistPrimEaseExt<f64, T> for HistPrim<T>