|
rby1-sdk
|
RGB color representation. More...
#include <robot.h>
Public Member Functions | |
| Color () | |
| Construct a Color instance with default values (0, 0, 0). | |
| Color (uint8_t _r, uint8_t _g, uint8_t _b) | |
| Construct a Color instance with specified RGB values. | |
Public Attributes | |
| uint8_t | b {0} |
| Blue component [0, 255]. | |
| uint8_t | g {0} |
| Green component [0, 255]. | |
| uint8_t | r {0} |
| Red component [0, 255]. | |
RGB color representation.
Represents a color using red, green, and blue components.
|
inline |
Construct a Color instance with specified RGB values.
| _r | Red component [0, 255]. |
| _g | Green component [0, 255]. |
| _b | Blue component [0, 255]. |