Skip to main content

zarr-maps-colormap

Shared Matplotlib-inspired colormaps and color-ramp utilities for the Zarr Maps packages.

import {
allColorScales,
colormapBuilder,
type ColorMapName
} from 'zarr-maps-colormap';

Interfaces

InterfaceDescription
ColorMapInfoStructure of the global color map registry.
ColorScalePropsNumerical range and colors used to render a scalar field.

Type Aliases

Type AliasDescription
ColorMapNameName of a bundled Matplotlib-inspired colormap.

Functions

FunctionDescription
colormapBuilderBuilds a color ramp (discrete or continuous) from a specified colormap.
colorScaleByNameReturns a color scale function for a given colormap name.