|
roo_blink
API Documentation for roo_blink
|
Simple 24-bit RGB color value. More...
#include <color.h>
Public Member Functions | |
| constexpr | Color () |
| Creates black (0,0,0). | |
| constexpr | Color (uint8_t r, uint8_t g, uint8_t b) |
| Creates a color from 8-bit RGB components. | |
| uint8_t | r () const |
| Returns the red component. | |
| uint8_t | g () const |
| Returns the green component. | |
| uint8_t | b () const |
| Returns the blue component. | |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
Returns the blue component.
Definition at line 22 of file color.h.
Referenced by roo_blink::NeoPixelLed::setColor().
|
inline |
Returns the green component.
Definition at line 20 of file color.h.
Referenced by roo_blink::NeoPixelLed::setColor().
|
inline |
Returns the red component.
Definition at line 18 of file color.h.
Referenced by roo_blink::NeoPixelLed::setColor().