Background color calculated once. Also, added wavelength of primary colors.