maspack.render.color
Interface ColorMap

All Known Implementing Classes:
ColorMapBase, GreyscaleColorMap, HueColorMap, InterpolatingColorMap, JetColorMap, RainbowColorMap

public interface ColorMap


Method Summary
 java.awt.Color getColor(double a)
          Returns an interpolated color
 void getHSV(double a, double[] hsv)
          Fills an array with the interpolated color values in HSV format
 void getHSV(double a, float[] hsv)
          Fills an array with the interpolated color values in HSV format
 void getRGB(double a, double[] rgb)
          Fills an array with the interpolated color values in RGB format
 void getRGB(double a, float[] rgb)
          Fills an array with the interpolated color values in RGB format
 

Method Detail

getColor

java.awt.Color getColor(double a)
Returns an interpolated color

Parameters:
a - input, usually in the range [0,1]
Returns:
the color

getRGB

void getRGB(double a,
            double[] rgb)
Fills an array with the interpolated color values in RGB format

Parameters:
a - input, usually in the range [0,1]
rgb - output color

getRGB

void getRGB(double a,
            float[] rgb)
Fills an array with the interpolated color values in RGB format

Parameters:
a - input, usually in the range [0,1]
rgb - output color

getHSV

void getHSV(double a,
            double[] hsv)
Fills an array with the interpolated color values in HSV format

Parameters:
a - input, usually in the range [0,1]
hsv - output color

getHSV

void getHSV(double a,
            float[] hsv)
Fills an array with the interpolated color values in HSV format

Parameters:
a - input, usually in the range [0,1]
hsv - output color