Skip to content

Type Alias: PaletteName

ts
type PaletteName = 
  | BuiltinPaletteName
  | string & {
};

Defined in: color/palettes.ts:15

A palette name. Built-ins autocomplete; any other string resolves through the registry, so registerPalette("brand", […]) makes "brand" usable anywhere a palette is accepted. Unknown names fall back to DEFAULT_PALETTE.

MIT licensed. WebGL2 required.