public final class RGBA extends Boxed
| Modifier and Type | Field and Description |
|---|---|
static RGBA |
BLACK |
static RGBA |
BLUE |
static RGBA |
GREEN |
static RGBA |
RED |
static RGBA |
WHITE |
| Constructor and Description |
|---|
RGBA(double red,
double green,
double blue,
double alpha)
Construct a new RGBA object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
double |
getAlpha()
Get the blue component of this Color.
|
double |
getBlue()
Get the blue component of this Color.
|
double |
getGreen()
Get the green component of this Color.
|
double |
getRed()
Get the red component of this Color.
|
int |
hashCode() |
public static final RGBA BLACK
public static final RGBA BLUE
public static final RGBA GREEN
public static final RGBA RED
public static final RGBA WHITE
public RGBA(double red,
double green,
double blue,
double alpha)
red, green,
blue and alpha parameters take values
0.0 to 1.0.public boolean equals(Object obj)
equals in class Objectpublic double getAlpha()
public double getBlue()
public double getGreen()
public double getRed()
public int hashCode()
hashCode in class Object