Skip to content

Function: getColorscale() ​

ts
function getColorscale(name): ColorscaleStops | undefined;

The stops of a named colorscale ('Viridis', 'viridis_r'), or undefined for unknown names. The result is shared: do not mutate it.

Parameters ​

ParameterType
namestring

Returns ​

ColorscaleStops | undefined

Released under the MIT License.