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

    Function lchToHWB

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

      This function first converts the LCh color to RGB, then from RGB to HWB. The HWB color space is a cylindrical representation of RGB, using hue, whiteness, and blackness components. Gamut mapping is performed during the conversion to ensure the resulting color is within the valid RGB gamut.

      Parameters

      • color: LChColor

        The LCh color to convert

      • OptionalperformGamutMapping: boolean = true

        Whether to perform gamut mapping

      Returns HWBColor

      The color in HWB space