Modifier and Type | Field and Description |
---|---|
private short |
b |
static Color |
Black |
static Color |
Blue |
static Color |
Cyan |
static Color |
DarkGray |
private short |
g |
static Color |
Gray |
static Color |
Green |
static Color |
LightGray |
static Color |
Magenta |
static Color |
MidGray |
static Color |
NavyBlue |
static Color |
OffWhite |
static Color |
Orange |
static Color |
Pink |
private short |
r |
static Color |
Red |
static Color |
White |
static Color |
Yellow |
Modifier | Constructor and Description |
---|---|
private |
Color(int r,
int g,
int b)
Constructor for a simple RGB colour model.
|
|
Color(short r,
short g,
short b)
Constructor for a simple RGB colour model.
|
Modifier and Type | Method and Description |
---|---|
short |
getBlue()
Blue component
|
short |
getGreen()
Green component
|
short |
getRed()
Red component
|
public Color(short r, short g, short b)
r
- red componentg
- green componentb
- blue componentprivate Color(int r, int g, int b)
r
- red componentg
- green componentb
- blue component