# xyzToSrgb

public final IntArray xyzToSrgb(@Size(value = 3) DoubleArray xyzIn, @Size(value = 3) DoubleArray refIn)

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)