public class Color extends BCNScalar
Modifier and Type | Field and Description |
---|---|
static Color |
BLACK |
static Color |
BLUE |
static Color |
GREEN |
static Color |
ORANGE |
static Color |
PURPLE |
static Color |
RED |
static Color |
TEAL |
static Color |
WHITE |
static Color |
YELLOW |
Constructor and Description |
---|
Color(int r,
int g,
int b)
Creates a Color from RGB values.
|
Modifier and Type | Method and Description |
---|---|
int |
getBlue()
Gets the Blue value of this Color.
|
int |
getGreen()
Gets the Green value of this Color.
|
int |
getRed()
Gets the Red value of this Color.
|
public static final Color BLACK
public static final Color WHITE
public static final Color RED
public static final Color GREEN
public static final Color BLUE
public static final Color PURPLE
public static final Color ORANGE
public static final Color TEAL
public static final Color YELLOW
public Color(int r, int g, int b)
r
- The Red value.g
- The Green value.b
- The Blue value.public int getRed()
public int getGreen()
public int getBlue()