Module Hugin.Cmap
Colormaps.
Colormaps.
A colormap is a continuous mapping from [0;1] to Color.t. Internally stored as a 256-entry lookup table with OKLCH interpolation, so eval is a single array access.
Types
Evaluation
Constructors
of_colors stops is a colormap interpolating linearly through stops in OKLCH space. The stops are evenly spaced from 0 to 1.
Raises Invalid_argument if stops has fewer than 2 elements.
Predefined colormaps
Perceptually uniform sequential colormaps from the viridis family, plus a diverging colormap.
val viridis : tval plasma : tval inferno : tval magma : tval cividis : tval coolwarm : tval gray : tLinear grayscale (black to white).
val gray_r : tReversed grayscale (white to black). The standard default for astronomical image display.
val hot : tBlack-red-yellow-white. Common in X-ray astronomy.