fm.liveswitch.Color Class Reference

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...
 

Detailed Description

A color.

Constructor & Destructor Documentation

◆ Color()

fm.liveswitch.Color.Color ( int  r,
int  g,
int  b 
)

Initializes a new instance of the fm.liveswitch.Color class.

Parameters
rThe red value (0-255).
gThe green value (0-255).
bThe blue value (0-255).

Member Function Documentation

◆ fromHsb()

static fm.liveswitch.Color fm.liveswitch.Color.fromHsb ( double  hue,
double  saturation,
double  brightness 
)
static

Creates a fm.liveswitch.Color using hue, saturation, and brightness.

Parameters
hueThe hue value (0-359).
saturationThe saturation value (0.0-1.0).
brightnessThe brightness value (0.0-1.0).

◆ getB()

int fm.liveswitch.Color.getB ( )

Gets the blue value (0-255).

◆ getBlack()

static fm.liveswitch.Color fm.liveswitch.Color.getBlack ( )
static

Gets a black color.

◆ getBlue()

static fm.liveswitch.Color fm.liveswitch.Color.getBlue ( )
static

Gets a blue color.

◆ getCyan()

static fm.liveswitch.Color fm.liveswitch.Color.getCyan ( )
static

Gets a cyan color.

◆ getDarkBlue()

static fm.liveswitch.Color fm.liveswitch.Color.getDarkBlue ( )
static

Gets a dark-blue color.

◆ getDarkGreen()

static fm.liveswitch.Color fm.liveswitch.Color.getDarkGreen ( )
static

Gets a dark-green color.

◆ getDarkRed()

static fm.liveswitch.Color fm.liveswitch.Color.getDarkRed ( )
static

Gets a dark-red color.

◆ getG()

int fm.liveswitch.Color.getG ( )

Gets the green value (0-255).

◆ getGray()

static fm.liveswitch.Color fm.liveswitch.Color.getGray ( )
static

Gets a gray color.

◆ getGreen()

static fm.liveswitch.Color fm.liveswitch.Color.getGreen ( )
static

Gets a green color.

◆ getMagenta()

static fm.liveswitch.Color fm.liveswitch.Color.getMagenta ( )
static

Gets a magenta color.

◆ getOlive()

static fm.liveswitch.Color fm.liveswitch.Color.getOlive ( )
static

Gets an olive color.

◆ getPurple()

static fm.liveswitch.Color fm.liveswitch.Color.getPurple ( )
static

Gets a purple color.

◆ getR()

int fm.liveswitch.Color.getR ( )

Gets the red value (0-255).

◆ getRed()

static fm.liveswitch.Color fm.liveswitch.Color.getRed ( )
static

Gets a red color.

◆ getTeal()

static fm.liveswitch.Color fm.liveswitch.Color.getTeal ( )
static

Gets a teal color.

◆ getWhite()

static fm.liveswitch.Color fm.liveswitch.Color.getWhite ( )
static

Gets a white color.

◆ getYellow()

static fm.liveswitch.Color fm.liveswitch.Color.getYellow ( )
static

Gets a yellow color.