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

    Function xyzToJzAzBz

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

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

      1. Pre-adapting XYZ values using chromatic adaptation factors to absolute D65 XYZ values
      2. Converting to LMS cone responses using a transformation matrix
      3. Applying the inverse Perceptual Quantizer (PQ) function to the LMS values
      4. Converting to Iz, az, bz using another transformation matrix
      5. Applying non-linear compression to Iz to get the Jz lightness component

      The JzAzBz color space is designed to be perceptually uniform with improved accuracy for both low and high luminance levels, making it suitable for HDR content.

      Parameters

      • color: XYZColor

        The XYZ color to convert

      • OptionalpeakLuminance: number = 10000

        The peak luminance in cd/m² that Y=1 maps to

      Returns JzAzBzColor

      The color in JzAzBz space