类 Spectrum


  • public class Spectrum
    extends java.lang.Object
    A class for calulating the colors of the spectrum.
    • 构造器概要

      构造器 
      构造器 说明
      Spectrum()  
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static int wavelengthToRGB​(float wavelength)
      Convert a wavelength to an RGB value.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • Spectrum

        public Spectrum()
    • 方法详细资料

      • wavelengthToRGB

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