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

    Function hwbFromVector

    • Creates an HWB color from a vector of component values.

      This utility function creates an HWB color from an array of numeric values.

      Parameters

      • v: number[]

        The vector containing HWB components [h, w, b]

      • Optionalalpha: number

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

      Returns HWBColor

      A new HWB color object

      If the vector does not have exactly 3 components