Skip to content

Function: paletteColor()

ts
function paletteColor(index, spec?): string;

Defined in: color/palettes.ts:70

The index-th colour of a palette, cycling once the palette is exhausted.

Parameters

ParameterTypeDefault value
indexnumberundefined
specPaletteSpec"tableau10"

Returns

string

MIT licensed. WebGL2 required.