Function tiny_skia_path::dash::interp

source ยท
fn interp(a: f32, b: f32, t: NormalizedF32) -> f32
Expand description

Linearly interpolate between A and B, based on t.

If t is 0, return A. If t is 1, return B else interpolate.