A color. More...
Public Member Functions | |
Color (int r, int g, int b) | |
Initializes a new instance of the fm.liveswitch.Color class. More... | |
int | getB () |
Gets the blue value (0-255). More... | |
int | getG () |
Gets the green value (0-255). More... | |
int | getR () |
Gets the red value (0-255). More... | |
Static Public Member Functions | |
static fm.liveswitch.Color | fromHsb (double hue, double saturation, double brightness) |
Creates a fm.liveswitch.Color using hue, saturation, and brightness. More... | |
static fm.liveswitch.Color | getBlack () |
Gets a black color. More... | |
static fm.liveswitch.Color | getBlue () |
Gets a blue color. More... | |
static fm.liveswitch.Color | getCyan () |
Gets a cyan color. More... | |
static fm.liveswitch.Color | getDarkBlue () |
Gets a dark-blue color. More... | |
static fm.liveswitch.Color | getDarkGreen () |
Gets a dark-green color. More... | |
static fm.liveswitch.Color | getDarkRed () |
Gets a dark-red color. More... | |
static fm.liveswitch.Color | getGray () |
Gets a gray color. More... | |
static fm.liveswitch.Color | getGreen () |
Gets a green color. More... | |
static fm.liveswitch.Color | getMagenta () |
Gets a magenta color. More... | |
static fm.liveswitch.Color | getOlive () |
Gets an olive color. More... | |
static fm.liveswitch.Color | getPurple () |
Gets a purple color. More... | |
static fm.liveswitch.Color | getRed () |
Gets a red color. More... | |
static fm.liveswitch.Color | getTeal () |
Gets a teal color. More... | |
static fm.liveswitch.Color | getWhite () |
Gets a white color. More... | |
static fm.liveswitch.Color | getYellow () |
Gets a yellow color. More... | |
A color.
fm.liveswitch.Color.Color | ( | int | r, |
int | g, | ||
int | b | ||
) |
Initializes a new instance of the fm.liveswitch.Color class.
r | The red value (0-255). |
g | The green value (0-255). |
b | The blue value (0-255). |
|
static |
Creates a fm.liveswitch.Color using hue, saturation, and brightness.
hue | The hue value (0-359). |
saturation | The saturation value (0.0-1.0). |
brightness | The brightness value (0.0-1.0). |
int fm.liveswitch.Color.getB | ( | ) |
Gets the blue value (0-255).
|
static |
Gets a black color.
|
static |
Gets a blue color.
|
static |
Gets a cyan color.
|
static |
Gets a dark-blue color.
|
static |
Gets a dark-green color.
|
static |
Gets a dark-red color.
int fm.liveswitch.Color.getG | ( | ) |
Gets the green value (0-255).
|
static |
Gets a gray color.
|
static |
Gets a green color.
|
static |
Gets a magenta color.
|
static |
Gets an olive color.
|
static |
Gets a purple color.
int fm.liveswitch.Color.getR | ( | ) |
Gets the red value (0-255).
|
static |
Gets a red color.
|
static |
Gets a teal color.
|
static |
Gets a white color.
|
static |
Gets a yellow color.