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... | |
A color.
- (int) b |
Gets the blue value (0-255).
+ (FMLiveSwitchColor*) black |
Gets a black color.
+ (FMLiveSwitchColor*) blue |
Gets a blue color.
+ (FMLiveSwitchColor*) colorWithR: | (int) | r | |
g: | (int) | g | |
b: | (int) | b | |
Initializes a new instance of the FMLiveSwitchColor class.
r | The red value (0-255). |
g | The green value (0-255). |
b | The blue value (0-255). |
+ (FMLiveSwitchColor*) cyan |
Gets a cyan color.
+ (FMLiveSwitchColor*) darkBlue |
Gets a dark-blue color.
+ (FMLiveSwitchColor*) darkGreen |
Gets a dark-green color.
+ (FMLiveSwitchColor*) darkRed |
Gets a dark-red color.
+ (FMLiveSwitchColor*) fromHsbWithHue: | (double) | hue | |
saturation: | (double) | saturation | |
brightness: | (double) | brightness | |
Creates a FMLiveSwitchColor 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) g |
Gets the green value (0-255).
+ (FMLiveSwitchColor*) gray |
Gets a gray color.
+ (FMLiveSwitchColor*) green |
Gets a green color.
- (instancetype) initWithR: | (int) | r | |
g: | (int) | g | |
b: | (int) | b | |
Initializes a new instance of the FMLiveSwitchColor class.
r | The red value (0-255). |
g | The green value (0-255). |
b | The blue value (0-255). |
+ (FMLiveSwitchColor*) magenta |
Gets a magenta color.
+ (FMLiveSwitchColor*) olive |
Gets an olive color.
+ (FMLiveSwitchColor*) purple |
Gets a purple color.
- (int) r |
Gets the red value (0-255).
+ (FMLiveSwitchColor*) red |
Gets a red color.
+ (FMLiveSwitchColor*) teal |
Gets a teal color.
+ (FMLiveSwitchColor*) white |
Gets a white color.
+ (FMLiveSwitchColor*) yellow |
Gets a yellow color.