wavelengthToRGB() function – I think it works.