- All Superinterfaces:
CSSColor
Represents a color in the LAB color model (
lab() or oklab()).-
Method Summary
Methods inherited from interface io.sf.carte.doc.style.css.CSSColor
component, deltaEOK, getAlpha, getColorModel, getColorSpace, getLength, isInGamut, item, packInValue, toColorSpace, toMinifiedString, toNumberArray, toXYZ, toXYZ
-
Method Details
-
getLightness
CSSPrimitiveValue getLightness()Get the lightness of this color.- Returns:
- the lightness component.
-
getA
CSSPrimitiveValue getA()Get thea(green-red) axis in the LAB space for this color.- Returns:
- the
acomponent.
-
getB
CSSPrimitiveValue getB()Get theb(blue–yellow) axis in the LAB space for this color.- Returns:
- the
bcomponent.
-
clone
LABColor clone()Description copied from interface:CSSColorClone this color.
-