colorscale_lookup

Function colorscale_lookup 

Source
fn colorscale_lookup(
    colorscale: &[(AlphaColor<Srgb>, f64)],
    value: f64,
) -> AlphaColor<Srgb>
Expand description

Linearly interpolate a color from a sorted colorscale based on a value.