Skip to main content

validate_colormap_spec

Function validate_colormap_spec 

Source
pub fn validate_colormap_spec(spec: &ColormapSpec) -> Result<(), String>
Expand description

Validates a ColormapSpec, returning an error string on failure.

Named variants are checked against VALID_COLORMAPS. Custom variants require at least two LUT entries.