public class ColorMapLinear extends Object implements ColorMap
ColorMap
which linearly interpolates the provided
ColorGradient
over the provided data bounds. If values
outside of the bounds are provided, the returned color will
simply saturate at one end of the ColorGradient
.Constructor and Description |
---|
ColorMapLinear(float min,
float max,
ColorGradient gradient) |
Modifier and Type | Method and Description |
---|---|
void |
toColor(float value,
float[] rgba)
Computes the color to be used to display the given value,
and stores the color in the rgba array.
|
public ColorMapLinear(float min, float max, ColorGradient gradient)
public void toColor(float value, float[] rgba)
ColorMap
Copyright © 2013 Metron, Inc.. All rights reserved.