com.jhlabs.image

Class Spectrum


public class Spectrum
extends java.lang.Object

A class for calulating the colors of the spectrum.

Method Summary

static int
wavelengthToRGB(float wavelength)
Convert a wavelength to an RGB value.

Method Details

wavelengthToRGB

public static int wavelengthToRGB(float wavelength)
Convert a wavelength to an RGB value.
Parameters:
wavelength - wavelength in nanometres
Returns:
the RGB value