com.jhlabs.image
Class Spectrum
java.lang.Object
com.jhlabs.image.Spectrum
public class Spectrum
- extends Object
A class for calulating the colors of the spectrum.
|
Method Summary |
static int |
wavelengthToRGB(float wavelength)
Convert a wavelength to an RGB value. |
| Methods inherited from class 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.
- Parameters:
wavelength - wavelength in nanometres
- Returns:
- the RGB value
Copyright © 2012. All Rights Reserved.