Skip to content

Function: palette()

ts
function palette(spec?): readonly string[];

Defined in: color/palettes.ts:64

Resolve a palette spec to its colours — a name, or the colours themselves.

Parameters

ParameterTypeDefault value
specPaletteSpec"tableau10"

Returns

readonly string[]

MIT licensed. WebGL2 required.