public class ColorMapLog extends ColorMapLinear
ColorMap
which interpolates the provided
ColorGradient
logarithmically 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 |
---|
ColorMapLog(float logMin,
float logMax,
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 ColorMapLog(float logMin, float logMax, ColorGradient gradient)
public void toColor(float value, float[] rgba)
ColorMap
toColor
in interface ColorMap
toColor
in class ColorMapLinear
Copyright © 2016 Metron, Inc.. All rights reserved.