Convert light frequency to RGB?
问题 Does anyone know of any formula for converting a light frequency to an RGB value? 回答1: Here's a detailed explanation of the entire conversion process: http://www.fourmilab.ch/documents/specrend/. Source code included! 回答2: For lazy guys (like me), here is an implementation in java of the code found in @user151323 's answer (that is, just a simple translation from pascal code found in Spectra Lab Report): static private double Gamma = 0.80; static private double IntensityMax = 255; /** Taken