This class stores information on RGB colors used for toys and effects (e.g. RGBLed).
More...
|
bool | SetColor (int Red, int Green, int Blue) |
| Sets the RGB components of the Color. More...
|
|
bool | SetColor (string Color) |
| Sets the RGB components of the Color.
The parameter string Color ist first parsed for hexadecimal color codes and afterwards checked for comma separated color values. More...
|
|
| RGBColor () |
| Initializes a new instance of the RGBColor class. More...
|
|
| RGBColor (int BrightnessRed, int BrightnessGreen, int BrightnessBlue) |
| Initializes a new instance of the RGBColor class. More...
|
|
| RGBColor (string Color) |
| Initializes a new instance of the RGBColor class. The parameter string Color ist first parsed for hexadecimal color codes and afterwards checked for comma separated color values. More...
|
|
This class stores information on RGB colors used for toys and effects (e.g. RGBLed).
DirectOutput.General.Color.RGBColor.RGBColor |
( |
| ) |
|
Initializes a new instance of the RGBColor class.
DirectOutput.General.Color.RGBColor.RGBColor |
( |
int |
BrightnessRed, |
|
|
int |
BrightnessGreen, |
|
|
int |
BrightnessBlue |
|
) |
| |
Initializes a new instance of the RGBColor class.
- Parameters
-
BrightnessRed | The brightness for red. |
BrightnessGreen | The brightness for green. |
BrightnessBlue | The brightness for blue. |
DirectOutput.General.Color.RGBColor.RGBColor |
( |
string |
Color | ) |
|
Initializes a new instance of the RGBColor class. The parameter string Color ist first parsed for hexadecimal color codes and afterwards checked for comma separated color values.
- Parameters
-
bool DirectOutput.General.Color.RGBColor.SetColor |
( |
int |
Red, |
|
|
int |
Green, |
|
|
int |
Blue |
|
) |
| |
Sets the RGB components of the Color.
- Parameters
-
Red | Red brightness |
Green | Green brightness |
Blue | Blue brightness |
- Returns
- true
bool DirectOutput.General.Color.RGBColor.SetColor |
( |
string |
Color | ) |
|
Sets the RGB components of the Color.
The parameter string Color ist first parsed for hexadecimal color codes and afterwards checked for comma separated color values.
- Parameters
-
Color | Hexadecimal color code (e.g. #ff0000 for red) or comma separated color (e.g. 0,255,0 for green). |
- Returns
- true if the parameter string contained a valid color codes, otherwise false.
int DirectOutput.General.Color.RGBColor.Blue |
|
getset |
Brightness for Blue.
Brightness between 0 and 255.
int DirectOutput.General.Color.RGBColor.Green |
|
getset |
Brightness for Green.
Brightness between 0 and 255.
string DirectOutput.General.Color.RGBColor.HexColor |
|
getset |
Returns the hexadecimal code for the color.
6 digit hexadecimal color code with leading #(e.g. #ff0000 for red).
int DirectOutput.General.Color.RGBColor.Red |
|
getset |
Brightness for Red.
Brightness between 0 and 255.
The documentation for this class was generated from the following file:
- C:/Users/Tom/Documents/GitHub/DirectOutput/DirectOutput/General/Color/RGBColor.cs