Seeed Grove ++  v0.0.1-2386
Linux C++ Library For Seeed Grove Devices
SG::RGB8 Struct Referencefinal

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

Detailed Description

Simple structure used to store 8-bit RGB colour values.

Constructor & Destructor Documentation

◆ RGB8() [1/2]

SG::RGB8::RGB8 ( const uint8_t  red = 0,
const uint8_t  green = 0,
const uint8_t  blue = 0 
)
inline

Constructor.

◆ RGB8() [2/2]

SG::RGB8::RGB8 ( const int  red,
const int  green,
const int  blue 
)
inline

Constructor.

References from_html_colour().

Here is the call graph for this function:

Member Function Documentation

◆ from_html_colour()

SG::RGB8 SG::RGB8::from_html_colour ( std::string &  html_colour)
static

References b, g, and r.

Referenced by RGB8().

Here is the caller graph for this function:

Member Data Documentation

◆ b

◆ g

◆ r


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