public class Color
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BLACK |
static int |
BLUE |
static int |
BROWN |
static int |
CYAN |
static int |
DARK_GRAY |
static int |
GRAY |
static int |
GREEN |
static int |
LIGHT_GRAY |
static int |
MAGENTA |
static int |
NONE |
static int |
ORANGE |
static int |
PINK |
static int |
RED |
static int |
WHITE |
static int |
YELLOW |
Constructor and Description |
---|
Color(int red,
int green,
int blue) |
Color(int red,
int green,
int blue,
int color) |
Modifier and Type | Method and Description |
---|---|
int |
getBlue()
Returns the blue component in the range 0-255 in the default sRGB space.
|
int |
getColor() |
int |
getGreen()
Returns the green component in the range 0-255 in the default sRGB space.
|
int |
getRed()
Returns the red component in the range 0-255 in the default sRGB space.
|
public static final int RED
public static final int GREEN
public static final int BLUE
public static final int YELLOW
public static final int MAGENTA
public static final int ORANGE
public static final int WHITE
public static final int BLACK
public static final int PINK
public static final int GRAY
public static final int LIGHT_GRAY
public static final int DARK_GRAY
public static final int CYAN
public static final int BROWN
public static final int NONE
public Color(int red, int green, int blue)
public Color(int red, int green, int blue, int color)
public int getRed()
public int getGreen()
public int getBlue()
public int getColor()