public class Color
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BLACK |
private int |
blue |
static int |
BLUE |
static int |
BROWN |
private int |
color |
private int |
green |
static int |
GREEN |
static int |
MAGENTA |
static int |
NONE |
static int |
ORANGE |
private int |
red |
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 NONE
public static final int BLACK
public static final int BLUE
public static final int GREEN
public static final int YELLOW
public static final int RED
public static final int WHITE
public static final int MAGENTA
public static final int ORANGE
public static final int BROWN
private int red
private int blue
private int green
private int color
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()