Function: discreteColormap()
ts
function discreteColormap(spec, steps): (t) => RGB;Defined in: color/colormap.ts:237
Quantize a colormap into steps flat bands — useful when readers must match a colour back to a legend entry rather than judge a continuous shade.
Parameters
| Parameter | Type |
|---|---|
spec | ColormapSpec |
steps | number |
Returns
(t) => RGB