# xyzToSrgb

fun xyzToSrgb(@Size(value = 3) xyzIn: DoubleArray, @Size(value = 3) refIn: DoubleArray): IntArray

Calculates companded sRGB value from XYZ given reference white of XYZ value.

#### Return

Non-linear sRGB value, 0-255 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)