24-bit color, able of representing 16,777,216 (2^24) different colors.
More...
#include <rgb.hpp>
|
| constexpr | RGB (uint8_t red=0, uint8_t green=0, uint8_t blue=0) |
| | Construct an RGB color.
|
| |
| constexpr auto | operator== (const RGB &rgb) const -> bool |
| | Compare 2 RGBs.
|
| |
|
|
uint8_t | r |
| | Red primary color.
|
| |
|
uint8_t | g |
| | Green primary color.
|
| |
|
uint8_t | b |
| | Blue primary color.
|
| |
24-bit color, able of representing 16,777,216 (2^24) different colors.
◆ RGB()
| KTech::RGB::RGB |
( |
uint8_t | red = 0, |
|
|
uint8_t | green = 0, |
|
|
uint8_t | blue = 0 ) |
|
inlineconstexpr |
Construct an RGB color.
- Parameters
-
| [in] | red | Red primary color. |
| [in] | green | Green primary color. |
| [in] | blue | Blue primary color. |
◆ operator==()
| auto KTech::RGB::operator== |
( |
const RGB & | rgb | ) |
const -> bool
|
|
inlineconstexpr |
Compare 2 RGBs.
- Parameters
-
| [in] | rgb | The RGB to compare with this RGB. |
- Returns
true: the red, green and blue primary colors are equal. false: they are unequal.
The documentation for this struct was generated from the following file: