i_slint_core::animations

Function easing_curve

Source
pub fn easing_curve(curve: &EasingCurve, value: f32) -> f32
Expand description

map a value between 0 and 1 to another value between 0 and 1 according to the curve