j2d.color
Class Wavelength

java.lang.Object
  extended by j2d.color.Wavelength

public class Wavelength
extends java.lang.Object


Constructor Summary
Wavelength()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static java.awt.Color wvColor(float wl, float gamma)
          Creates a Color object given the wavelength instead of the usual RGB or HSB values.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Wavelength

public Wavelength()
Method Detail

wvColor

public static java.awt.Color wvColor(float wl,
                                     float 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.
gamma - 0.0 .. 1.0 intensity.

main

public static void main(java.lang.String[] args)