public class Color
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Color |
Black |
static Color |
Blue |
static Color |
Brown |
static Color |
Cyan |
static Color |
Green |
static Color |
Grey |
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)
Create a color using the color in the palette that is closest to the RGB color specified.
|
public static Color Red
public static Color Blue
public static Color Teal
public static Color Purple
public static Color Orange
public static Color Brown
public static Color White
public static Color Yellow
public static Color Green
public static Color Cyan
public static Color Black
public static Color Grey
public Color(int r, int g, int b)
r
- g
- b
-