Skip to content

Function: reverseColorscale() ​

ts
function reverseColorscale(stops): ColorscaleStops;

A scale with its stops mirrored: position p → 1 - p, order reversed.

Parameters ​

ParameterType
stopsColorscaleStops

Returns ​

ColorscaleStops

Released under the MIT License.