Skip to main content

Module interpolate

Module interpolate 

Source
Expand description

Interpolation trait for animating values Interpolation trait and helpers for animating values.

Implemented for f32, f64, Color32, Pos2, Vec2, and Rect.

Traits§

Interpolate
Trait for types that can be interpolated between two values

Functions§

lerp
Helper function for smooth interpolation with custom easing
smooth_step
Smooth step interpolation (S-curve)
smoother_step
Smoother step interpolation (smoother S-curve)