@OPEN-KAPPA/COLORS
    Preparing search index...

    Type Alias ColorConstructor<T>

    Type describing the static properties of a Color subclass.

    type ColorConstructor<T extends Color> = {
        black: T;
        fromComponents: (comps: number[]) => T;
        fromXyz: (xyz: Xyz) => T;
        fromXyzComponents: (xyzComps: number[]) => number[];
        gray: T;
        middleGray: T;
        toXyzComponents: (comps: number[]) => number[];
        transparent: T;
        white: T;
        whitePoint: Xyz;
    }

    Type Parameters

    Index

    Properties

    black: T

    The base black color in this color space.

    fromComponents: (comps: number[]) => T

    Create a color instance from its components.

    fromXyz: (xyz: Xyz) => T

    Convert a XYZ color instance to this color space.

    fromXyzComponents: (xyzComps: number[]) => number[]

    Convert XYZ components to this color space components.

    gray: T

    The base mathematically middle-gray color in this color space.

    middleGray: T

    The base perceptive middle-gray color in this color space.

    toXyzComponents: (comps: number[]) => number[]

    Convert this components to XYZ components.

    transparent: T

    The base transparent color in this color space.

    white: T

    The base white color in this color space.

    whitePoint: Xyz

    The white point in this color space, as a XYZ instance.