createColormapScale
function
- Kind
- function
- Source
- src/colors/colormaps.js:483
Description
Create a numeric colormap scale.
Signature
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
colormapInput | string|Function|Object | Colormap reference. | ||
options | Object | optional | Scale options. | |
domain | Array<number> | optional | Numeric input domain. | |
alpha | number | optional | Output alpha override. |
Returns
Function that maps values to RGBA colors.
TypeFunction