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.
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.