public class Gradient
extends java.lang.Object
get_color_at(float)
that interpolates a new Color
at the given position. This utility class supports alpha gradient.Modifier and Type | Class and Description |
---|---|
private class |
Gradient.ColorPoint
Internal class used to store a color at a given position in the gradient interpolation.
|
Modifier and Type | Field and Description |
---|---|
private Gradient.ColorPoint[] |
colors_ |
Constructor and Description |
---|
Gradient(int[] colors)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
get_color_at(float position)
Returns a new
ColorInt at the given gradient's position. |
private final Gradient.ColorPoint[] colors_