Boboter
Loading...
Searching...
No Matches
Colors Namespace Reference

A namespace containing predefined rgb_color_t values. More...

Variables

constexpr uint8_t NUM_COLORS = 8
constexpr rgb_color_t OFF = {0, 0, 0}
constexpr rgb_color_t RED = {255, 0, 0}
constexpr rgb_color_t ORANGE = {255, 160, 0}
constexpr rgb_color_t YELLOW = {255, 255, 0}
constexpr rgb_color_t GREEN = {0, 255, 0}
constexpr rgb_color_t CYAN = {0, 255, 255}
constexpr rgb_color_t BLUE = {0, 0, 255}
constexpr rgb_color_t MAGENTA = {255, 0, 255}
constexpr rgb_color_t WHITE = {255, 255, 255}
constexpr rgb_color_t LIST [NUM_COLORS]
 An array containing all the colors to make it easy to loop over them or randomly pick one.

Detailed Description

A namespace containing predefined rgb_color_t values.

Variable Documentation

◆ BLUE

rgb_color_t Colors::BLUE = {0, 0, 255}
constexpr

◆ CYAN

rgb_color_t Colors::CYAN = {0, 255, 255}
constexpr

◆ GREEN

rgb_color_t Colors::GREEN = {0, 255, 0}
constexpr

◆ LIST

rgb_color_t Colors::LIST[NUM_COLORS]
constexpr
Initial value:
= {
}
constexpr rgb_color_t MAGENTA
Definition predef_colors.h:26
constexpr rgb_color_t CYAN
Definition predef_colors.h:24
constexpr rgb_color_t BLUE
Definition predef_colors.h:25
constexpr rgb_color_t YELLOW
Definition predef_colors.h:22
constexpr rgb_color_t WHITE
Definition predef_colors.h:27
constexpr rgb_color_t RED
Definition predef_colors.h:20
constexpr rgb_color_t ORANGE
Definition predef_colors.h:21
constexpr rgb_color_t GREEN
Definition predef_colors.h:23

An array containing all the colors to make it easy to loop over them or randomly pick one.

◆ MAGENTA

rgb_color_t Colors::MAGENTA = {255, 0, 255}
constexpr

◆ NUM_COLORS

uint8_t Colors::NUM_COLORS = 8
constexpr

◆ OFF

rgb_color_t Colors::OFF = {0, 0, 0}
constexpr

◆ ORANGE

rgb_color_t Colors::ORANGE = {255, 160, 0}
constexpr

◆ RED

rgb_color_t Colors::RED = {255, 0, 0}
constexpr

◆ WHITE

rgb_color_t Colors::WHITE = {255, 255, 255}
constexpr

◆ YELLOW

rgb_color_t Colors::YELLOW = {255, 255, 0}
constexpr