@pbroom/color-kit/driverColor state
SetColorRequestedOptions
Options for setColorRequested.
import type { SetColorRequestedOptions } from '@pbroom/color-kit/driver';color-state.ts:349interface SetColorRequestedOptions extends MapDisplayedColorsOptions {
gamutMapMethod?: GamutMapMethod;
explicitHue?: boolean;
}Properties
- gamutMapMethod?
GamutMapMethoddefault'chroma-reduction' - Gamut mapping passed to
toSrgbGamut/toP3Gamut. The setters default to the state's currentmeta.gamutMapMethodinstead. - explicitHue?
booleandefaulttrue - Whether
requested.his an OKLCH hue the caller stated. Whenfalseandrequestedis achromatic, the state's current requested hue is kept (seeresolveIncomingRequested). Passfalsefor colors converted from hex, RGB, HSL, HSV or any non-OKLCH string.