Skip to content

galavi / getColormapLUT

Function: getColormapLUT()

getColormapLUT(name, color?): Uint8Array

Defined in: utils/colormaps.ts:279

Get the 256×4 RGBA LUT for a named colormap. Returns the "gray" LUT if the name is unknown.

Parameters

name

string

color?

string

Returns

Uint8Array

Released under the GPL-3.0 License.