ColourVocabulary

Options for parseColour: whether to accept every colour name, or only those a value-mapped surface allows.

@internote/canvas-sdkInterface
On this page
import { ColourVocabulary } from '@internote/canvas-sdk';

There are exactly two, and the difference is whether the colour has to name a SCALE. Most marks paint in one colour and take all thirty; a value-mapped surface paints a range and takes only the nine bare hues and the literals, because those are what have two ends to run between. See SURFACE_NAMES.

#Fields

tones
Whether light-/dark- names and neutral are admitted. False is the surface vocabulary: neutral goes with the tones, naming one token rather than a scale.
boolean

Declared in packages/canvas-sdk/src/paint/colour.ts:351.

Last updated