8
9
10
11
12
25 void setValue(uint8_t r, uint8_t g, uint8_t b) {
42 static uint8_t
size() {
return 24; }
RGB color stored in 24-bit RGB888 format.
Definition: RGB888.h:13
uint8_t value[3]
Definition: RGB888.h:45
RGB888(uint8_t v)
Creates a grayscale color from a single 8-bit value (all channels set to v).
Definition: RGB888.h:22
uint8_t getBlue() const
Returns the blue component.
Definition: RGB888.h:36
static uint8_t size()
Returns size in bits.
Definition: RGB888.h:42
uint8_t getGreen() const
Returns the green component.
Definition: RGB888.h:34
uint8_t getRed() const
Returns the red component.
Definition: RGB888.h:32
const uint8_t * getValue() const
Returns the packed RGB888 value as a pointer to 3 bytes.
Definition: RGB888.h:39
RGB888(uint8_t r, uint8_t g, uint8_t b)
Creates a color from 8-bit red, green, and blue components.
Definition: RGB888.h:19
void setValue(uint8_t r, uint8_t g, uint8_t b)
Sets the color from 8-bit red, green, and blue components.
Definition: RGB888.h:25
RGB888()=default
Creates a black RGB888 color.
Definition: AVIWriter.h:9
bool operator!=(const tinygpu::RGB888 &lhs, const tinygpu::RGB888 &rhs)
Definition: RGB888.h:48