wavelength To Color function comes from this link -- https://scienceprimer.com/javascript-code-convert-light-wavelength-color Wavelength range 380-780 scales against ID - max langth.