Package com.jhlabs.image
Class Spectrum
java.lang.Object
com.jhlabs.image.Spectrum
A class for calulating the colors of the spectrum.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
wavelengthToRGB
(float wavelength) Convert a wavelength to an RGB value.
-
Constructor Details
-
Spectrum
public Spectrum()
-
-
Method Details
-
wavelengthToRGB
public static int wavelengthToRGB(float wavelength) Convert a wavelength to an RGB value.- Parameters:
wavelength
- wavelength in nanometres- Returns:
- the RGB value
-