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
.