Boboter
Loading...
Searching...
No Matches
predef_colors.h
Go to the documentation of this file.
1
7
8#pragma once
9
10#include "types/rgb_color.h"
11
15namespace Colors {
16 constexpr uint8_t NUM_COLORS = 8; // Not including OFF
17
18 constexpr rgb_color_t OFF = {0, 0, 0};
19
20 constexpr rgb_color_t RED = {255, 0, 0};
21 constexpr rgb_color_t ORANGE = {255, 160, 0};
22 constexpr rgb_color_t YELLOW = {255, 255, 0};
23 constexpr rgb_color_t GREEN = {0, 255, 0};
24 constexpr rgb_color_t CYAN = {0, 255, 255};
25 constexpr rgb_color_t BLUE = {0, 0, 255};
26 constexpr rgb_color_t MAGENTA = {255, 0, 255};
27 constexpr rgb_color_t WHITE = {255, 255, 255};
28
35}
A namespace containing predefined rgb_color_t values.
Definition predef_colors.h:15
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 OFF
Definition predef_colors.h:18
constexpr rgb_color_t YELLOW
Definition predef_colors.h:22
constexpr rgb_color_t WHITE
Definition predef_colors.h:27
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.
Definition predef_colors.h:32
constexpr rgb_color_t RED
Definition predef_colors.h:20
constexpr uint8_t NUM_COLORS
Definition predef_colors.h:16
constexpr rgb_color_t ORANGE
Definition predef_colors.h:21
constexpr rgb_color_t GREEN
Definition predef_colors.h:23
A type for storing a 16-bit RGB color.
Definition rgb_color.h:14