37 static_assert(
sizeof(
ColorBgr) == 3,
"Incorrect size of ColorBgr");
46 inline std::ostream& operator<<(std::ostream& os,
const ColorBgr& color)
48 os <<
"{" << unsigned(color.
red) <<
"," << unsigned(color.
green) <<
"," << unsigned(color.
blue) <<
"}";
static ColorBgr BLACK
'Black' RgbColor (0, 0, 0)
Definition: ColorBgr.h:23
static ColorBgr YELLOW
'Yellow' RgbColor (255, 255, 0)
Definition: ColorBgr.h:31
Plain-Old-Data structure containing the red-green-blue color specification.
Definition: ColorBgr.h:13
static ColorBgr BLUE
'Blue' RgbColor (0, 0, 255)
Definition: ColorBgr.h:29
static ColorBgr WHITE
'White' RgbColor (255, 255, 255)
Definition: ColorBgr.h:33
uint8_t blue
The blue color channel.
Definition: ColorBgr.h:16
uint8_t green
The green color channel.
Definition: ColorBgr.h:18
static ColorBgr RED
'Red' RgbColor (255, 0, 0)
Definition: ColorBgr.h:25
uint8_t red
The red color channel.
Definition: ColorBgr.h:20
static ColorBgr GREEN
'Green' RgbColor (0, 255, 0)
Definition: ColorBgr.h:27