colormapToScheme
function
- Kind
- function
- Source
- src/colors/colormaps.js:464
Description
Resolve a colormap to a discrete color scheme.
Signature
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
input | string|Function|Object | Colormap reference. | ||
count | number | Number of colors to sample. |
Returns
Sampled RGBA colors.
TypeArray<Array<number>>|null