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

    Function jzazbzToXYZ

    • Converts a color from JzAzBz to CIE XYZ color space.

      This function implements the JzAzBz to XYZ conversion algorithm, which includes:

      1. Converting Jz to Iz by inverting the non-linear compression
      2. Converting (Iz, az, bz) to encoded LMS values using a transformation matrix
      3. Applying the forward PQ function to recover linear LMS values
      4. Converting LMS to pre-adapted XYZ using another transformation matrix
      5. Undoing the chromatic adaptation to get the final XYZ values

      Parameters

      • color: JzAzBzColor

        The JzAzBz color to convert

      • OptionalpeakLuminance: number = 10000

        The peak luminance of the display, in nits

      Returns XYZColor

      The color in XYZ space