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

    Function hwb

    • Creates a new HWB color object with the specified components.

      This is the primary factory function for creating HWB colors in the library. The created object includes methods for conversion to other color spaces and string representations.

      Parameters

      • h: number

        The hue component (0-360 degrees)

      • w: number

        The whiteness component (0-1)

      • b: number

        The blackness component (0-1)

      • Optionalalpha: number

        The alpha (opacity) component (0-1), optional

      Returns HWBColor

      A new HWB color object