@pbroom/color-kit/driverMulti color
CreateMultiColorModelOptions
Options for createMultiColorModel.
import type { CreateMultiColorModelOptions } from '@pbroom/color-kit/driver';multi-color-state.ts:93interface 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?
stringdefaultthe 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 aTypeError. - activeView?
ViewModeldefault'oklch' - Model every entry is shown in.