Wavelength creates Color objects given the wavelength or
the frequency of the light rather than the usual RGB or HSB.
instead of:
Color c = new Color(255, 0, 0);
use the frequency in nanometers, and gamma 0.0. .. 1.0.
(gamma is intensity/brightness.)
Color c = Wavelength.wvColor( 400.0f, 0.80f );
The visible range of the spectrum is 380..780 nanometers.
Smaller is bluer.
or using frequency in Te
Keywords: wavelength, Color, gamma, frequency, hue, specturm, rainbow, rgb, hsb
Recent Changes: slight correction to speed of light
Install Support: No Install Support
Supported Languages: English
Additional Requirements: Java 1.6+
if($showpadurl == true) {?>
PAD file URL: http://mindprod.com/pad/wavelength.xml
} ?>
|