Skip to content

labIsInGamut

labIsInGamut(lab, whitePoint, rgbProfile): boolean

Defined in: packages/math-color/src/lab-is-in-rgb-gamut.ts:15

Test if a CIE L_a_b* color is in gamut for the given RGB profile.

LabD50

The CIE L_a_b* color to test.

XyzNormalized

The reference white point of the CIE L_a_b* color.

RgbProfile

The RGB color space profile to test against.

boolean

true if the color is in gamut, false otherwise.