Struct Colors::RGB¶
Defined in File colors.h
Nested Relationships¶
This struct is a nested type of Class Colors.
Struct Documentation¶
-
struct
RGB
Stores an RGB definition of a color.
Public Functions
-
RGB
(uint8_t red = 0, uint8_t green = 0, uint8_t blue = 0) Constructor. Defaults to black if no other parameters are provided.
- Parameters
red
: Red value.green
: Green value.blue
: Blue value.
-
void
operator=
(RGB color_two)
-
bool
operator==
(RGB color_two) const
-
bool
operator!=
(RGB color_two) const
-
RGB
operator*
(float multiplier) const
Public Members
-
uint8_t
r
The color’s red value.
-
uint8_t
g
The color’s green value.
-
uint8_t
b
The color’s blue value.
-