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

    Function xyzToP3

    • Converts a color from CIE XYZ to DCI-P3 RGB color space.

      This function applies the XYZ to P3 RGB transformation matrix to convert the color, then delinearizes the RGB values (applies gamma correction) to get standard RGB values. It also performs gamut mapping to ensure the resulting RGB values are within the valid DCI-P3 gamut.

      Parameters

      • color: XYZColor

        The XYZ color to convert

      Returns P3Color

      The color in DCI-P3 RGB space