Skip to content

Function: registerPalette()

ts
function registerPalette(name, colors): void;

Defined in: color/palettes.ts:53

Register a custom palette under name, so it can be used anywhere a palette name is accepted. Re-registering a name replaces it.

Parameters

ParameterType
namestring
colorsreadonly string[]

Returns

void

MIT licensed. WebGL2 required.