org.jscience.physics.waves
Class ColorConverter

java.lang.Object
  extended by org.jscience.physics.waves.ColorConverter

public final class ColorConverter
extends java.lang.Object

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

ColorConverter

public ColorConverter()
Method Detail

getColor

public static java.awt.Color getColor(double wl,
                                      double gamma)
Creates a Color object given the wavelength instead of the usual RGB or HSB values.

Parameters:
wl - wavelength of the light in NANOMETERS. Will show up black outside the range 380..780 nanometers.
gamma - 0.0 .. 1.0 intensity.
Returns:
DOCUMENT ME!