类 Spectrum


  • public class Spectrum
    extends Object
    A class for calulating the colors of the spectrum.
    • 构造器详细资料

      • Spectrum

        public Spectrum()
    • 方法详细资料

      • wavelengthToRGB

        public static int wavelengthToRGB​(float wavelength)
        Convert a wavelength to an RGB value.
        参数:
        wavelength - wavelength in nanometres
        返回:
        the RGB value