Skip to content

Function: colorscaleKey() ​

ts
function colorscaleKey(scale, space?): string;

Experimental

Resource key for a colorscale. Colors are quantized to 8 bits, as in the LUT.

Parameters ​

ParameterTypeDefault value
scaleColorscaleundefined
spaceColorscaleInterpolation'rgb'

Returns ​

string

Released under the MIT License.