@dragonspark/chroma-kit
    Preparing search index...

    Function labToHWB

    • Converts a color from CIE Lab to HWB color space.

      This function uses the automatic conversion system to find the optimal path from Lab to HWB, which typically goes through XYZ and RGB. Gamut mapping is performed during the conversion to ensure the resulting color is within the valid RGB gamut.

      Parameters

      • color: LabColor

        The Lab color to convert

      • OptionalperformGamutMapping: boolean = true

        Whether to perform gamut mapping

      Returns HWBColor

      The color in HWB space