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.