• Converts an HWB color to an RGBA color.

    Example

    hwbToRgba('180deg', 0.5, 0.25 / 0.9) // return { r: 0.5, g: 0.75, b: 0.75, a: 0.9 }
    

    Parameters

    • hwba: [string, number, number, number?]

      Color components as an angle followed by fractions.

    Returns RGBA

Generated using TypeDoc