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

    Interface LChColor

    Represents a color in the CIE LCh color space.

    The CIE LCh color space is a cylindrical representation of the Lab color space, using Lightness, Chroma, and hue components. This makes it more intuitive for color adjustments as it separates color into perceptually meaningful components.

    interface LChColor {
        alpha?: number;
        c: number;
        channels: Record<string, ColorChannel>;
        dynamicRange: "SDR" | "HDR";
        h: number;
        illuminant?: Illuminant;
        isPolar: boolean;
        l: number;
        space: "lch";
        to: <
            T extends
                | "rgb"
                | "p3"
                | "hsl"
                | "hsv"
                | "hwb"
                | "xyz"
                | "lab"
                | "lch"
                | "oklab"
                | "oklch"
                | "jzazbz"
                | "jzczhz",
        >(
            colorSpace: T,
        ) => CreatedColor<T>;
        toCSSString: () => string;
        toString: () => string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    alpha?: number

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

    c: number

    The chroma (saturation/colorfulness) component

    channels: Record<string, ColorChannel>
    dynamicRange: "SDR" | "HDR"
    h: number

    The hue angle in degrees (0-360)

    illuminant?: Illuminant
    isPolar: boolean
    l: number

    The lightness component (0-100)

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