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

    Function rgbToHWB

    • Converts an RGB color to the HWB color space.

      This function transforms the color from RGB (Red, Green, Blue) to HWB (Hue, Whiteness, Blackness). The algorithm determines the hue in the same way as HSV/HSL, while whiteness is determined by the minimum RGB component and blackness by the maximum RGB component.

      Parameters

      • color: RGBColor

        The RGB color to convert

      Returns HWBColor

      The color in HWB space