|
|
|
Categories :
Web Development > Java & JavaScript
|
|
Wavelength 1.3
|
|
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.)
|
| |
Description From Publisher
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 Terahertz and gamma 0.0. .. 1.0.
Color c = Wavelength.fColor( 500.0f, 1.0f );
The visible range of the spectrum is 384..789 TeraHertz.
Smaller is redder.
Wavelength does not do much on its own. It is intended to be
incorporated into your own programs.
You might use it to draw a realistic rainbow, or to write
educational Applets about the light spectrum.
Supported OS
Win98,WinME,WinNT 3.x,WinNT 4.x,Windows2000,WinXP,Windows2003,Windows Vista Star
Related Keywords
wavelength wavelength Color Color gamma gamma frequency frequency hue hue specturm specturm rainbow rainbow rgb rgb hsb hsb

|

|
|
|