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 uint8_t NUM_COLORS_WITH_BLACK = 9
 Not including Colors::BLACK.
constexpr rgb_color_t BLACK = {0, 0, 0}
 Including Colors::BLACK.
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.
constexpr rgb_color_t LIST_WITH_BLACK [NUM_COLORS+1]
 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

◆ BLACK

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

Including Colors::BLACK.

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

Attention
This does NOT contain Colors::BLACK. If you need one that does, use Colors::LIST_WITH_BLACK instead

◆ LIST_WITH_BLACK

rgb_color_t Colors::LIST_WITH_BLACK[NUM_COLORS+1]
constexpr
Initial value:
= {
}
constexpr rgb_color_t BLACK
Including Colors::BLACK.
Definition predef_colors.h:19

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

Attention
This does contain Colors::BLACK. If you need one that doesn't, use Colors::LIST instead

◆ MAGENTA

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

◆ NUM_COLORS

uint8_t Colors::NUM_COLORS = 8
constexpr

◆ NUM_COLORS_WITH_BLACK

uint8_t Colors::NUM_COLORS_WITH_BLACK = 9
constexpr

Not including Colors::BLACK.

◆ 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