public class Color
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Color |
BLACK |
static Color |
BLUE |
static Color |
CYAN |
static Color |
DARK_GRAY |
static Color |
GRAY |
static Color |
GREEN |
static Color |
LIGHT_GRAY |
static Color |
MAGENTA |
static Color |
ORANGE |
static Color |
PINK |
static Color |
RED |
static Color |
WHITE |
static Color |
YELLOW |
Constructor and Description |
---|
Color(int red,
int green,
int blue)
Constructs a new Color object.
|
public static final Color RED
public static final Color GREEN
public static final Color BLUE
public static final Color WHITE
public static final Color LIGHT_GRAY
public static final Color GRAY
public static final Color DARK_GRAY
public static final Color BLACK
public static final Color CYAN
public static final Color MAGENTA
public static final Color YELLOW
public static final Color PINK
public static final Color ORANGE
public Color(int red, int green, int blue)
red
- the red value of the color (between 0 and 255)green
- the green value of the color (between 0 and 255)blue
- the blue value of the color (between 0 and 255)public int getRed()
public int getGreen()
public int getBlue()