com.jhlabs.image
Class GrayscaleColormap
java.lang.Objectcom.jhlabs.image.GrayscaleColormap
- Colormap
public class GrayscaleColormap
extends java.lang.Object
A grayscale colormap. Black is 0, white is 1.
int | getColor(float v)- Convert a value in the range 0..1 to an RGB color.
|
GrayscaleColormap
public GrayscaleColormap()
getColor
public int getColor(float v)
Convert a value in the range 0..1 to an RGB color.
- getColor in interface Colormap
v - a value in the range 0..1