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

    Interface XYZColor

    Represents a color in the CIE XYZ color space.

    The CIE XYZ color space is a device-independent color space that serves as a standard reference for defining all other color spaces. It's based on direct measurements of human visual perception and is often used as an intermediate space for converting between other color spaces.

    interface XYZColor {
        alpha?: number;
        illuminant?: Illuminant;
        space: "xyz";
        to: <
            T extends
                | "rgb"
                | "hwb"
                | "hsl"
                | "hsv"
                | "xyz"
                | "lab"
                | "lch"
                | "oklab"
                | "oklch"
                | "jzazbz"
                | "jzczhz",
        >(
            colorSpace: T,
        ) => CreatedColor<T>;
        toCSSString: () => string;
        toString: () => string;
        x: number;
        y: number;
        z: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    alpha?: number

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

    illuminant?: Illuminant

    The reference white point used for this color

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

    The X component, related to a mix of the cone response curves

    y: number

    The Y component, representing luminance

    z: number

    The Z component, roughly equal to blue stimulation