Class SpectrumColormap

  • All Implemented Interfaces:
    Colormap

    public class SpectrumColormap
    extends java.lang.Object
    implements Colormap
    A colormap with the colors of the spectrum.
    • Constructor Summary

      Constructors 
      Constructor Description
      SpectrumColormap()
      Construct a spcetrum color map.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getColor​(float v)
      Convert a value in the range 0..1 to an RGB color.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpectrumColormap

        public SpectrumColormap()
        Construct a spcetrum color map.
    • Method Detail

      • 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