public class ColorUtilities
extends java.lang.Object
Constructor and Description |
---|
ColorUtilities() |
Modifier and Type | Method and Description |
---|---|
static java.awt.Color |
getRGBforWaveLength_Human(float wl,
float gamma)
Creates a Color object given the wavelength instead of the
usual RGB or HSB values.
|
static java.awt.Color |
getRGBforWaveLength_Screen(float wl,
float gamma)
Creates a Color object given the wavelength instead of the
usual RGB or HSB values.
|
public static java.awt.Color getRGBforWaveLength_Human(float wl, float gamma)
wl
- wavelength of the light in nanometers.
Will show up black outside the range 380..780.gamma
- 0.0 .. 1.0 intensity.public static java.awt.Color getRGBforWaveLength_Screen(float wl, float gamma)
wl
- wavelength of the light in nanometers.
Will show up black outside the range 380..780.gamma
- 0.0 .. 1.0 intensity.RH, 2017