Skip to content

Function: reverseColormap()

ts
function reverseColormap(spec?): (t) => RGB;

Defined in: color/colormap.ts:221

The reverse of a colormap — high values take the low end's colour.

Parameters

ParameterTypeDefault value
specColormapSpec"viridis"

Returns

(t) => RGB

MIT licensed. WebGL2 required.