WIP
DirectOutput framework for virtual pinball cabinets WIP
|
Go to: Overview |
This class stores information on RGB colors used for toys and effects (e.g. RGBLed). More...
Public Member Functions | |
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... | |
Properties | |
int | Red [get, set] |
Brightness for Red. More... | |
int | Green [get, set] |
Brightness for Green. More... | |
int | Blue [get, set] |
Brightness for Blue. More... | |
string | HexColor [get, set] |
Returns the hexadecimal code for the color. More... | |
This class stores information on RGB colors used for toys and effects (e.g. RGBLed).
Definition at line 14 of file RGBColor.cs.
DirectOutput.General.Color.RGBColor.RGBColor | ( | ) |
Initializes a new instance of the RGBColor class.
Definition at line 137 of file RGBColor.cs.
DirectOutput.General.Color.RGBColor.RGBColor | ( | int | BrightnessRed, |
int | BrightnessGreen, | ||
int | BrightnessBlue | ||
) |
Initializes a new instance of the RGBColor class.
BrightnessRed | The brightness for red. |
BrightnessGreen | The brightness for green. |
BrightnessBlue | The brightness for blue. |
Definition at line 145 of file RGBColor.cs.
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.
Color | The color string. |
Definition at line 153 of file RGBColor.cs.
bool DirectOutput.General.Color.RGBColor.SetColor | ( | int | Red, |
int | Green, | ||
int | Blue | ||
) |
Sets the RGB components of the Color.
Red | Red brightness |
Green | Green brightness |
Blue | Blue brightness |
Definition at line 82 of file RGBColor.cs.
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.
Color | Hexadecimal color code (e.g. #ff0000 for red) or comma separated color (e.g. 0,255,0 for green). |
Definition at line 96 of file RGBColor.cs.
|
getset |
|
getset |
|
getset |
Returns the hexadecimal code for the color.
6 digit hexadecimal color code with leading #(e.g. #ff0000 for red).
Definition at line 65 of file RGBColor.cs.
|
getset |