@pbroom/color-kit/driverMulti color

CreateMultiColorModelOptions

Options for createMultiColorModel.

interfaceimport type { CreateMultiColorModelOptions } from '@pbroom/color-kit/driver';multi-color-state.ts:93
interface CreateMultiColorModelOptions {
  colors?: MultiColorInput;
  selectedId?: string;
  activeGamut?: GamutTarget;
  activeView?: ViewModel;
}

Properties

colors?MultiColorInput
Initial entries. An empty or missing input creates one entry, color-1, with { l: 0.6, c: 0.2, h: 250, alpha: 1 }.
selectedId?stringdefault the first entry's id
Initially selected id. Ignored when it names no entry.
activeGamut?GamutTargetdefault 'display-p3'
Gamut every entry renders in. Any value other than 'srgb' or 'display-p3' throws a TypeError.
activeView?ViewModeldefault 'oklch'
Model every entry is shown in.