public class Gradient
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
mColorMapSize
Size of a color map for the heatmap
|
int[] |
mColors
The colors to be used in the gradient
|
float[] |
mStartPoints
The starting point for each color, given as a percentage of the maximum intensity
|
| Constructor and Description |
|---|
Gradient(int[] colors,
float[] startPoints)
Creates a Gradient with the given colors and starting points.
|
Gradient(int[] colors,
float[] startPoints,
int colorMapSize)
Creates a Gradient with the given colors and starting points which creates a colorMap of given size.
|
public final int mColorMapSize
public int[] mColors
public float[] mStartPoints
public Gradient(int[] colors,
float[] startPoints)
colors - The colors to be used in the gradientstartPoints - The starting point for each color, given as a percentage of the maximum intensity
This is given as an array of floats with values in the interval [0,1]public Gradient(int[] colors,
float[] startPoints,
int colorMapSize)
colors - The colors to be used in the gradientstartPoints - The starting point for each color, given as a percentage of the maximum intensity
This is given as an array of floats with values in the interval [0,1]colorMapSize - The size of the colorMap to be generated by the Gradient