|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.physics.waves.ColorConverter
public final class ColorConverter
instead of: Color c = new Color(255, 0, 0); use the freqency in nanometers, and gamma 0.0. .. 1.0. Color c = ColorConverter.getColor( 400.0f, 0.80f );
| Constructor Summary | |
|---|---|
ColorConverter()
|
|
| Method Summary | |
|---|---|
static java.awt.Color |
getColor(double wl,
double gamma)
Creates a Color object given the wavelength instead of the usual RGB or HSB values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColorConverter()
| Method Detail |
|---|
public static java.awt.Color getColor(double wl,
double gamma)
wl - wavelength of the light in NANOMETERS. Will show up black
outside the range 380..780 nanometers.gamma - 0.0 .. 1.0 intensity.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||