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

    Function xyz

    • Creates a new XYZ color object with the specified components.

      This is the primary factory function for creating XYZ colors in the library. The created object includes methods for conversion to other color spaces and string representations. If no illuminant is specified, the standard D65 illuminant is used as the default.

      Parameters

      • 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

      • Optionalalpha: number

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

      • Optionalilluminant: Illuminant

        The reference white point to use, defaults to D65

      Returns XYZColor

      A new XYZ color object