This struct serves as a container for RGB values, and provides a few overridden constructors for converting from hex to 8-bit RGB values.
More...
#include <MultimediaBoard.h>
|
| RGB () |
| Construct a new RGB object.
|
|
| RGB (int iHex) |
| Construct a new RGB object.
|
|
| RGB (double dRed, double dGreen, double dBlue) |
| Construct a new RGB object.
|
|
|
double | dRed |
|
double | dGreen |
|
double | dBlue |
|
This struct serves as a container for RGB values, and provides a few overridden constructors for converting from hex to 8-bit RGB values.
- Author
- Eli Byrd (edbgk.nosp@m.k@ms.nosp@m.t.edu)
- Date
- 2023-06-20
◆ RGB() [1/3]
MultimediaBoard::RGB::RGB |
( |
| ) |
|
|
inline |
◆ RGB() [2/3]
MultimediaBoard::RGB::RGB |
( |
int |
iHex | ) |
|
|
inline |
Construct a new RGB object.
- Parameters
-
iHex | - The three hexadecimal digit value containing the RGB values. 0xFFF == 255, 255, 255. |
- Author
- Eli Byrd (edbgk.nosp@m.k@ms.nosp@m.t.edu)
- Date
- 2023-06-20
70 {
71 this->dRed = ((iHex >> 16) & 0xFF);
72 this->dGreen = ((iHex >> 8) & 0xFF);
73 this->dBlue = (iHex & 0xFF);
74 }
◆ RGB() [3/3]
MultimediaBoard::RGB::RGB |
( |
double |
dRed, |
|
|
double |
dGreen, |
|
|
double |
dBlue |
|
) |
| |
|
inline |
Construct a new RGB object.
- Parameters
-
dRed | - The red value of the LED panel. (0-255) |
dGreen | - The green value of the LED panel. (0-255) |
dBlue | - The blue value of the LED panel. (0-255) |
- Author
- Eli Byrd (edbgk.nosp@m.k@ms.nosp@m.t.edu)
- Date
- 2023-06-20
87 {
88 this->dRed = dRed;
89 this->dGreen = dGreen;
90 this->dBlue = dBlue;
91 }
The documentation for this struct was generated from the following file: