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

    Interface HWBColor

    Represents a color in the HWB color space.

    HWB (Hue, Whiteness, Blackness) is a cylindrical color model that rearranges the RGB color model to be more intuitive for humans to work with. It was designed to be more user-friendly than HSL or HSV.

    interface HWBColor {
        alpha?: number;
        b: number;
        h: number;
        space: "hwb";
        to: <
            T extends
                | "rgb"
                | "hwb"
                | "hsl"
                | "hsv"
                | "xyz"
                | "lab"
                | "lch"
                | "oklab"
                | "oklch"
                | "jzazbz"
                | "jzczhz",
        >(
            colorSpace: T,
        ) => CreatedColor<T>;
        toCSSString: () => string;
        toString: () => string;
        w: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    alpha?: number

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

    b: number

    The blackness component (0-1)

    h: number

    The hue component (0-360 degrees)

    space: "hwb"
    to: <
        T extends
            | "rgb"
            | "hwb"
            | "hsl"
            | "hsv"
            | "xyz"
            | "lab"
            | "lch"
            | "oklab"
            | "oklch"
            | "jzazbz"
            | "jzczhz",
    >(
        colorSpace: T,
    ) => CreatedColor<T>
    toCSSString: () => string
    toString: () => string
    w: number

    The whiteness component (0-1)