Simple structure used to store 8-bit RGB colour values. More...
#include <sg_types.hpp>
Public Member Functions | |
RGB8 (const uint8_t red=0, const uint8_t green=0, const uint8_t blue=0) | |
Constructor. More... | |
RGB8 (const int red, const int green, const int blue) | |
Constructor. More... | |
Static Public Member Functions | |
static RGB8 | from_html_colour (std::string &html_colour) |
Public Attributes | |
uint8_t | r |
red More... | |
uint8_t | g |
green More... | |
uint8_t | b |
blue More... | |
Simple structure used to store 8-bit RGB colour values.
|
inline |
Constructor.
|
inline |
|
static |
uint8_t SG::RGB8::b |
blue
Referenced by from_html_colour(), SG::ChainableRGBLED::set_RGB(), and SG::ChainableRGBLED::turn_on().
uint8_t SG::RGB8::g |
green
Referenced by from_html_colour(), SG::ChainableRGBLED::set_RGB(), and SG::ChainableRGBLED::turn_on().
uint8_t SG::RGB8::r |
red
Referenced by from_html_colour(), SG::ChainableRGBLED::set_RGB(), and SG::ChainableRGBLED::turn_on().