50 uint8_t
r(
void)
const {
return val[0]; }
51 uint8_t
g(
void)
const {
return val[1]; }
52 uint8_t
b(
void)
const {
return val[2]; }
53 uint8_t
a(
void)
const {
return val[3]; }
58 return (val[0] == rhs.val[0]) && (val[1] == rhs.val[1]) &&
59 (val[2] == rhs.val[2]) && (val[3] == rhs.val[3]);
uint8_t r(void) const
get the r value of the colour
Definition: color.h:50
a little class representing an RGBA colour value, an a value of 255 is assumed to be opaque ...
Definition: color.h:36
void operator=(const Color_c &rhs)
Definition: color.h:63
uint8_t a(void) const
get the a value of the colour
Definition: color.h:53
Color_c(void)
Definition: color.h:44
The namespace for the library. Every function and class is within this namespace. ...
Definition: color.h:31
uint8_t g(void) const
get the g value of the colour
Definition: color.h:51
uint8_t b(void) const
get the b value of the colour
Definition: color.h:52
bool operator==(const Color_c &rhs) const
Definition: color.h:56
Color_c(uint8_t r, uint8_t g, uint8_t b, uint8_t a=255)
Definition: color.h:47