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

    Interface RGBColor

    Represents a color in the RGB color space.

    The RGB color model is an additive color model in which red, green, and blue lights are added together in various ways to reproduce a broad array of colors.

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

    Hierarchy (View Summary)

    Index

    Properties

    alpha?: number
    b: number

    The blue component (0-1 for normalized values, 0-255 for denormalized)

    g: number

    The green component (0-1 for normalized values, 0-255 for denormalized)

    r: number

    The red component (0-1 for normalized values, 0-255 for denormalized)

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