public final class GradientColor
extends java.lang.Object
Constructor and Description |
---|
GradientColor(int x1,
int y1,
ColorRgba color1,
int x2,
int y2,
ColorRgba color2)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ColorRgba |
getColor1()
Get the first color.
|
ColorRgba |
getColor2()
Get the last color.
|
int |
getX1()
Get the first horizontal location.
|
int |
getX2()
Get the last horizontal location.
|
int |
getY1()
Get the first vertical location.
|
int |
getY2()
Get the last vertical location.
|
public GradientColor(int x1, int y1, ColorRgba color1, int x2, int y2, ColorRgba color2)
x1
- The first horizontal location.y1
- The first vertical location.color1
- The first color.x2
- The last horizontal location.y2
- The last vertical location.color2
- The last color.public int getX1()
public int getY1()
public ColorRgba getColor1()
public int getX2()
public int getY2()
public ColorRgba getColor2()