pub fn bounce(easing: impl Fn(f32) -> f32) -> impl Fn(f32) -> f32
Apply the given easing function, first in the forward direction and then in the reverse direction