13 Color(uint8_t r, uint8_t g, uint8_t b) : r_(r), g_(g), b_(b) {}
16 uint8_t
getRed()
const {
return r_; }
29 #ifndef DOXYGEN_OMIT_INTERNAL 32 #endif // DOXYGEN_OMIT_INTERNAL uint8_t getRed() const
Returns the red channel; value is between 0 and 255.
Definition: color.hpp:16
uint8_t getBlue() const
Returns the blue channel; value is between 0 and 255.
Definition: color.hpp:20
uint8_t getGreen() const
Returns the green channel; value is between 0 and 255.
Definition: color.hpp:18
Structure to describe an RGB color.
Definition: color.hpp:8
Color(uint8_t r, uint8_t g, uint8_t b)
Creates a color from the given red, green, and blue channel values.
Definition: color.hpp:13