rby1-sdk
Loading...
Searching...
No Matches
rb::Color Struct Reference

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].
 

Detailed Description

RGB color representation.

Represents a color using red, green, and blue components.

Constructor & Destructor Documentation

◆ Color()

rb::Color::Color ( uint8_t _r,
uint8_t _g,
uint8_t _b )
inline

Construct a Color instance with specified RGB values.

Parameters
_rRed component [0, 255].
_gGreen component [0, 255].
_bBlue component [0, 255].

The documentation for this struct was generated from the following file: