Interface LABColor

All Superinterfaces:
CSSColor

public interface LABColor extends CSSColor
Represents a color in the LAB color model (lab() or oklab()).
  • Method Details

    • getLightness

      CSSPrimitiveValue getLightness()
      Get the lightness of this color.
      Returns:
      the lightness component.
    • getA

      Get the a (green-red) axis in the LAB space for this color.
      Returns:
      the a component.
    • getB

      Get the b (blue–yellow) axis in the LAB space for this color.
      Returns:
      the b component.
    • clone

      LABColor clone()
      Description copied from interface: CSSColor
      Clone this color.
      Specified by:
      clone in interface CSSColor
      Returns:
      a clone of this color.