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

    Function xyzToJzCzHz

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

      This function first converts the XYZ color to JzAzBz, then from JzAzBz to JzCzHz. The JzCzHz color space is a cylindrical representation of JzAzBz, using lightness, chroma (saturation), and hue components, with improved perceptual uniformity 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 JzCzHzColor

      The color in JzCzHz space