public class Color extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static Color |
BLACK
The Constant BLACK.
|
static Color |
BLUE
The Constant BLUE.
|
static Color |
CYAN
The Constant CYAN.
|
static Color |
DARK_GRAY
The Constant DARK_GRAY.
|
static Color |
GRAY
The Constant GRAY.
|
static Color |
GREEN
The Constant GREEN.
|
static Color |
LIGHT_GRAY
The Constant LIGHT_GRAY.
|
static Color |
MAGENTA
The Constant MAGENTA.
|
static Color |
ORANGE
The Constant ORANGE.
|
static Color |
PINK
The Constant PINK.
|
static Color |
RED
The Constant RED.
|
static Color |
WHITE
The Constant WHITE.
|
static Color |
YELLOW
The Constant YELLOW.
|
| 构造器和说明 |
|---|
Color(float h,
float s,
float l)
Instantiates a new color.
|
Color(int r,
int g,
int b)
Instantiates a new color.
|
Color(String hex)
Instantiates a new color.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getBlue()
Gets the blue.
|
int |
getGreen()
Gets the green.
|
float |
getHue()
Gets the hue.
|
float |
getLightness()
Gets the lightness.
|
int |
getRed()
Gets the red.
|
float |
getSaturation()
Gets the saturation.
|
String |
toString() |
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 RED
public static final Color PINK
public static final Color ORANGE
public static final Color YELLOW
public static final Color GREEN
public static final Color MAGENTA
public static final Color CYAN
public static final Color BLUE
public Color(String hex)
hex - the hexpublic Color(int r,
int g,
int b)
r - the rg - the gb - the bpublic Color(float h,
float s,
float l)
h - the hs - the sl - the lpublic int getRed()
public int getGreen()
public int getBlue()
public float getHue()
public float getSaturation()
public float getLightness()
Copyright © 2017. All rights reserved.