public final class ColorGradient extends Object
This class is Thread-Safe.
Constructor and Description |
---|
ColorGradient(int x1,
int y1,
ColorRgba color1,
int x2,
int y2,
ColorRgba color2)
Create a gradient color.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
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.
|
int |
hashCode() |
public ColorGradient(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.LionEngineException
- If null
arguments.public int getX1()
public int getY1()
public ColorRgba getColor1()
public int getX2()
public int getY2()
public ColorRgba getColor2()
Copyright © 2017 Byron 3D Games Studio. All rights reserved.