Skip to main content

sample_colormap_from

Function sample_colormap_from 

Source
pub fn sample_colormap_from(
    t: f32,
    cmap: impl Into<ColormapSelection>,
) -> [f32; 4]
Expand description

Sample a selected colormap at t in [0, 1].