# xyzToRgb

fun xyzToRgb(@Size(value = 3) xyzIn: DoubleArray, @Size(value = 3) refIn: DoubleArray, @Size(value = 2) redChromaticity: DoubleArray, @Size(value = 2) greenChromaticity: DoubleArray, @Size(value = 2) blueChromaticity: DoubleArray, @Size(value = 2) whiteChromaticity: DoubleArray): DoubleArray

Calculates linear RGB from XYZ given chromaticity coordinates of RGB working space primaries and reference whites of RGB and XYZ value

#### Return

Linear RGB value, unity scale, (element order R, G, B)

#### Parameters

xyzIn

Input colour XYZ values, unity scale (element order X, Y, Z)

refIn

Reference white of input colour xyzIn, unity scale (element order Xref, Yref, Zref)

redChromaticity

RGB space red primary chromaticity coordinates (element order x, y)

greenChromaticity

RGB space green primary chromaticity coordinates (element order x, y)

blueChromaticity

RGB space blue primary chromaticity coordinates (element order x, y)

whiteChromaticity

RGB space reference white/grey chromaticity coordinates (element order x, y)