public class ColorRamp
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.awt.Color |
colorRamp(int v,
int vmin,
int vmax)
Get a color for a value 'v' between vmin and vmax.
|
static java.util.List<java.awt.Color> |
getColors(int number)
Get N colors as a list.
|
public static java.util.List<java.awt.Color> getColors(int number)
number
- the number of colors to generatepublic static java.awt.Color colorRamp(int v, int vmin, int vmax)
v
- the point on the ramp to make a color forvmin
- the minimum value in the rangevmax
- the maximum value in the range