FMLiveSwitchColor Class Reference

A color. More...

Instance Methods

(int) - b
 Gets the blue value (0-255). More...
 
(int) - g
 Gets the green value (0-255). More...
 
(instancetype) - initWithR:g:b:
 Initializes a new instance of the FMLiveSwitchColor class. More...
 
(int) - r
 Gets the red value (0-255). More...
 

Class Methods

(FMLiveSwitchColor *) + black
 Gets a black color. More...
 
(FMLiveSwitchColor *) + blue
 Gets a blue color. More...
 
(FMLiveSwitchColor *) + colorWithR:g:b:
 Initializes a new instance of the FMLiveSwitchColor class. More...
 
(FMLiveSwitchColor *) + cyan
 Gets a cyan color. More...
 
(FMLiveSwitchColor *) + darkBlue
 Gets a dark-blue color. More...
 
(FMLiveSwitchColor *) + darkGreen
 Gets a dark-green color. More...
 
(FMLiveSwitchColor *) + darkRed
 Gets a dark-red color. More...
 
(FMLiveSwitchColor *) + fromHsbWithHue:saturation:brightness:
 Creates a FMLiveSwitchColor using hue, saturation, and brightness. More...
 
(FMLiveSwitchColor *) + gray
 Gets a gray color. More...
 
(FMLiveSwitchColor *) + green
 Gets a green color. More...
 
(FMLiveSwitchColor *) + magenta
 Gets a magenta color. More...
 
(FMLiveSwitchColor *) + olive
 Gets an olive color. More...
 
(FMLiveSwitchColor *) + purple
 Gets a purple color. More...
 
(FMLiveSwitchColor *) + red
 Gets a red color. More...
 
(FMLiveSwitchColor *) + teal
 Gets a teal color. More...
 
(FMLiveSwitchColor *) + white
 Gets a white color. More...
 
(FMLiveSwitchColor *) + yellow
 Gets a yellow color. More...
 

Detailed Description

A color.

Method Documentation

◆ b

- (int) b

Gets the blue value (0-255).

◆ black

+ (FMLiveSwitchColor*) black

Gets a black color.

◆ blue

+ (FMLiveSwitchColor*) blue

Gets a blue color.

◆ colorWithR:g:b:

+ (FMLiveSwitchColor*) colorWithR: (int)  r
g: (int)  g
b: (int)  b 

Initializes a new instance of the FMLiveSwitchColor class.

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

◆ cyan

+ (FMLiveSwitchColor*) cyan

Gets a cyan color.

◆ darkBlue

+ (FMLiveSwitchColor*) darkBlue

Gets a dark-blue color.

◆ darkGreen

+ (FMLiveSwitchColor*) darkGreen

Gets a dark-green color.

◆ darkRed

+ (FMLiveSwitchColor*) darkRed

Gets a dark-red color.

◆ fromHsbWithHue:saturation:brightness:

+ (FMLiveSwitchColor*) fromHsbWithHue: (double)  hue
saturation: (double)  saturation
brightness: (double)  brightness 

Creates a FMLiveSwitchColor 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).

◆ g

- (int) g

Gets the green value (0-255).

◆ gray

+ (FMLiveSwitchColor*) gray

Gets a gray color.

◆ green

+ (FMLiveSwitchColor*) green

Gets a green color.

◆ initWithR:g:b:

- (instancetype) initWithR: (int)  r
g: (int)  g
b: (int)  b 

Initializes a new instance of the FMLiveSwitchColor class.

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

◆ magenta

+ (FMLiveSwitchColor*) magenta

Gets a magenta color.

◆ olive

+ (FMLiveSwitchColor*) olive

Gets an olive color.

◆ purple

+ (FMLiveSwitchColor*) purple

Gets a purple color.

◆ r

- (int) r

Gets the red value (0-255).

◆ red

Gets a red color.

◆ teal

+ (FMLiveSwitchColor*) teal

Gets a teal color.

◆ white

+ (FMLiveSwitchColor*) white

Gets a white color.

◆ yellow

+ (FMLiveSwitchColor*) yellow

Gets a yellow color.