Skip to main content

Class: ColorTables

Defined in: colortables.ts:23

Constructors

Constructor

new ColorTables(): ColorTables;

Defined in: colortables.ts:31

Sets cluts to alphabetically sorted cmaps

Returns

ColorTables

Properties

PropertyTypeDefault valueDefined in
clutsRecord<string, ColorMap>{}colortables.ts:26
gammanumber1.0colortables.ts:24
versionnumber0.1colortables.ts:25

Methods

addColormap()

addColormap(key: string, cmap: ColorMap): void;

Defined in: colortables.ts:43

Parameters

ParameterType
keystring
cmapColorMap

Returns

void


colormap()

colormap(key: string, isInvert: boolean): Uint8ClampedArray;

Defined in: colortables.ts:83

Parameters

ParameterTypeDefault value
keystring''
isInvertbooleanfalse

Returns

Uint8ClampedArray


colormapFromKey()

colormapFromKey(name: string): ColorMap;

Defined in: colortables.ts:57

Parameters

ParameterType
namestring

Returns

ColorMap


colormaps()

colormaps(): string[];

Defined in: colortables.ts:47

Returns

string[]


colorMaps()

colorMaps(): string[];

Defined in: colortables.ts:52

Returns

string[]


makeDrawLut()

makeDrawLut(name: string | ColorMap): LUT;

Defined in: colortables.ts:152

Parameters

ParameterType
namestring | ColorMap

Returns

LUT


makeLabelLut()

makeLabelLut(cm: ColorMap, alphaFill: number): LUT;

Defined in: colortables.ts:88

Parameters

ParameterTypeDefault value
cmColorMapundefined
alphaFillnumber255

Returns

LUT


makeLabelLutFromUrl()

makeLabelLutFromUrl(name: string): Promise<LUT>;

Defined in: colortables.ts:144

Parameters

ParameterType
namestring

Returns

Promise<LUT>


makeLut()

makeLut(
Rsi: number[],
Gsi: number[],
Bsi: number[],
Asi: number[],
Isi: number[],
isInvert: boolean): Uint8ClampedArray;

Defined in: colortables.ts:198

Parameters

ParameterType
Rsinumber[]
Gsinumber[]
Bsinumber[]
Asinumber[]
Isinumber[]
isInvertboolean

Returns

Uint8ClampedArray