Class SpectrumColormap

java.lang.Object
com.jhlabs.image.SpectrumColormap
All Implemented Interfaces:
Colormap, Serializable

public class SpectrumColormap extends Object implements Colormap, Serializable
A colormap with the colors of the spectrum.
See Also:
  • Constructor Details

    • SpectrumColormap

      public SpectrumColormap()
      Construct a spcetrum color map
  • Method Details

    • getColor

      public int getColor(float v)
      Convert a value in the range 0..1 to an RGB color.
      Specified by:
      getColor in interface Colormap
      Parameters:
      v - a value in the range 0..1
      Returns:
      an RGB color