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

    Function xyzToRGB

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

      This function applies the XYZ to 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 RGB gamut.

      Parameters

      • color: XYZColor

        The XYZ color to convert

      • OptionalperformGamutMapping: boolean = true

        Whether to perform gamut mapping

      Returns RGBColor

      The color in RGB space