Helperfunction to turn Y_linear values to Y_srgb as described in https://en.wikipedia.org/wiki/Grayscale

ysrgb(val)

Arguments

val

The Y_linear Value to be turned into Y_srgb