FTXUI 6.1.9 C++ functional terminal UI.

Loading...
Searching...
No Matches
color.hpp
Go to the documentation of this file.
1// Copyright 2020 Arthur Sonzogni. All rights reserved.
2// Use of this source code is governed by the MIT license that can be found in
3// the LICENSE file.
4#ifndef FTXUI_SCREEN_COLOR_HPP
5#define FTXUI_SCREEN_COLOR_HPP
6
7#include <cstdint> // for uint8_t
8#include <string> // for string
9
10#ifdef RGB
11// Workaround for wingdi.h (via Windows.h) defining macros that break things.
12// https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-rgb
13#undef RGB
14#endif
15
16 namespace ftxui {
17
18/// @brief Color is a class that represents a color in the terminal user
19/// interface.
20///
21/// @ingroup screen
22 class Color {
23 public:
24 enum Palette1 : uint8_t;
25 enum Palette16 : uint8_t;
26 enum Palette256 : uint8_t;
27
28 // NOLINTBEGIN
29 Color(); // Transparent.
30 Color(Palette1 index); // Transparent.
31 Color(Palette16 index); // Implicit conversion from index to Color.
32 Color(Palette256 index); // Implicit conversion from index to Color.
33 // NOLINTEND
34 Color(uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha = 255);
35 static Color RGB(uint8_t red, uint8_t green, uint8_t blue);
36 static Color HSV(uint8_t hue, uint8_t saturation, uint8_t value);
37 static Color RGBA(uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha);
38 static Color HSVA(uint8_t hue,
39 uint8_t saturation,
40 uint8_t value,
41 uint8_t alpha);
42 static Color Interpolate(float t, const Color& a, const Color& b);
43 static Color Blend(const Color& lhs, const Color& rhs);
44
45 //---------------------------
46 // List of colors:
47 //---------------------------
48 // clang-format off
49 enum Palette1 : uint8_t{
50 Default, // Transparent
51 };
52
53 enum Palette16 : uint8_t {
54 Black = 0,
55 Red = 1,
56 Green = 2,
57 Yellow = 3,
58 Blue = 4,
59 Magenta = 5,
60 Cyan = 6,
61 GrayLight = 7,
62 GrayDark = 8,
63 RedLight = 9,
64 GreenLight = 10,
65 YellowLight = 11,
66 BlueLight = 12,
67 MagentaLight = 13,
68 CyanLight = 14,
69 White = 15,
70 };
71
72 enum Palette256 : uint8_t {
73 Aquamarine1 = 122,
74 Aquamarine1Bis = 86,
75 Aquamarine3 = 79,
76 Blue1 = 21,
77 Blue3 = 19,
78 Blue3Bis = 20,
79 BlueViolet = 57,
80 CadetBlue = 72,
81 CadetBlueBis = 73,
82 Chartreuse1 = 118,
83 Chartreuse2 = 112,
84 Chartreuse2Bis = 82,
85 Chartreuse3 = 70,
86 Chartreuse3Bis = 76,
87 Chartreuse4 = 64,
88 CornflowerBlue = 69,
89 Cornsilk1 = 230,
90 Cyan1 = 51,
91 Cyan2 = 50,
92 Cyan3 = 43,
93 DarkBlue = 18,
94 DarkCyan = 36,
95 DarkGoldenrod = 136,
96 DarkGreen = 22,
97 DarkKhaki = 143,
98 DarkMagenta = 90,
99 DarkMagentaBis = 91,
100 DarkOliveGreen1 = 191,
101 DarkOliveGreen1Bis = 192,
102 DarkOliveGreen2 = 155,
103 DarkOliveGreen3 = 107,
104 DarkOliveGreen3Bis = 113,
105 DarkOliveGreen3Ter = 149,
106 DarkOrange = 208,
107 DarkOrange3 = 130,
108 DarkOrange3Bis = 166,
109 DarkRed = 52,
110 DarkRedBis = 88,
111 DarkSeaGreen = 108,
112 DarkSeaGreen1 = 158,
113 DarkSeaGreen1Bis = 193,
114 DarkSeaGreen2 = 151,
115 DarkSeaGreen2Bis = 157,
116 DarkSeaGreen3 = 115,
117 DarkSeaGreen3Bis = 150,
118 DarkSeaGreen4 = 65,
119 DarkSeaGreen4Bis = 71,
120 DarkSlateGray1 = 123,
121 DarkSlateGray2 = 87,
122 DarkSlateGray3 = 116,
123 DarkTurquoise = 44,
124 DarkViolet = 128,
125 DarkVioletBis = 92,
126 DeepPink1 = 198,
127 DeepPink1Bis = 199,
128 DeepPink2 = 197,
129 DeepPink3 = 161,
130 DeepPink3Bis = 162,
131 DeepPink4 = 125,
132 DeepPink4Bis = 89,
133 DeepPink4Ter = 53,
134 DeepSkyBlue1 = 39,
135 DeepSkyBlue2 = 38,
136 DeepSkyBlue3 = 31,
137 DeepSkyBlue3Bis = 32,
138 DeepSkyBlue4 = 23,
139 DeepSkyBlue4Bis = 24,
140 DeepSkyBlue4Ter = 25,
141 DodgerBlue1 = 33,
142 DodgerBlue2 = 27,
143 DodgerBlue3 = 26,
144 Gold1 = 220,
145 Gold3 = 142,
146 Gold3Bis = 178,
147 Green1 = 46,
148 Green3 = 34,
149 Green3Bis = 40,
150 Green4 = 28,
151 GreenYellow = 154,
152 Grey0 = 16,
153 Grey100 = 231,
154 Grey11 = 234,
155 Grey15 = 235,
156 Grey19 = 236,
157 Grey23 = 237,
158 Grey27 = 238,
159 Grey3 = 232,
160 Grey30 = 239,
161 Grey35 = 240,
162 Grey37 = 59,
163 Grey39 = 241,
164 Grey42 = 242,
165 Grey46 = 243,
166 Grey50 = 244,
167 Grey53 = 102,
168 Grey54 = 245,
169 Grey58 = 246,
170 Grey62 = 247,
171 Grey63 = 139,
172 Grey66 = 248,
173 Grey69 = 145,
174 Grey7 = 233,
175 Grey70 = 249,
176 Grey74 = 250,
177 Grey78 = 251,
178 Grey82 = 252,
179 Grey84 = 188,
180 Grey85 = 253,
181 Grey89 = 254,
182 Grey93 = 255,
183 Honeydew2 = 194,
184 HotPink = 205,
185 HotPink2 = 169,
186 HotPink3 = 132,
187 HotPink3Bis = 168,
188 HotPinkBis = 206,
189 IndianRed = 131,
190 IndianRed1 = 203,
191 IndianRed1Bis = 204,
192 IndianRedBis = 167,
193 Khaki1 = 228,
194 Khaki3 = 185,
195 LightCoral = 210,
196 LightCyan1Bis = 195,
197 LightCyan3 = 152,
198 LightGoldenrod1 = 227,
199 LightGoldenrod2 = 186,
200 LightGoldenrod2Bis = 221,
201 LightGoldenrod2Ter = 222,
202 LightGoldenrod3 = 179,
203 LightGreen = 119,
204 LightGreenBis = 120,
205 LightPink1 = 217,
206 LightPink3 = 174,
207 LightPink4 = 95,
208 LightSalmon1 = 216,
209 LightSalmon3 = 137,
210 LightSalmon3Bis = 173,
211 LightSeaGreen = 37,
212 LightSkyBlue1 = 153,
213 LightSkyBlue3 = 109,
214 LightSkyBlue3Bis = 110,
215 LightSlateBlue = 105,
216 LightSlateGrey = 103,
217 LightSteelBlue = 147,
218 LightSteelBlue1 = 189,
219 LightSteelBlue3 = 146,
220 LightYellow3 = 187,
221 Magenta1 = 201,
222 Magenta2 = 165,
223 Magenta2Bis = 200,
224 Magenta3 = 127,
225 Magenta3Bis = 163,
226 Magenta3Ter = 164,
227 MediumOrchid = 134,
228 MediumOrchid1 = 171,
229 MediumOrchid1Bis = 207,
230 MediumOrchid3 = 133,
231 MediumPurple = 104,
232 MediumPurple1 = 141,
233 MediumPurple2 = 135,
234 MediumPurple2Bis = 140,
235 MediumPurple3 = 97,
236 MediumPurple3Bis = 98,
237 MediumPurple4 = 60,
238 MediumSpringGreen = 49,
239 MediumTurquoise = 80,
240 MediumVioletRed = 126,
241 MistyRose1 = 224,
242 MistyRose3 = 181,
243 NavajoWhite1 = 223,
244 NavajoWhite3 = 144,
245 NavyBlue = 17,
246 Orange1 = 214,
247 Orange3 = 172,
248 Orange4 = 58,
249 Orange4Bis = 94,
250 OrangeRed1 = 202,
251 Orchid = 170,
252 Orchid1 = 213,
253 Orchid2 = 212,
254 PaleGreen1 = 121,
255 PaleGreen1Bis = 156,
256 PaleGreen3 = 114,
257 PaleGreen3Bis = 77,
258 PaleTurquoise1 = 159,
259 PaleTurquoise4 = 66,
260 PaleVioletRed1 = 211,
261 Pink1 = 218,
262 Pink3 = 175,
263 Plum1 = 219,
264 Plum2 = 183,
265 Plum3 = 176,
266 Plum4 = 96,
267 Purple = 129,
268 Purple3 = 56,
269 Purple4 = 54,
270 Purple4Bis = 55,
271 PurpleBis = 93,
272 Red1 = 196,
273 Red3 = 124,
274 Red3Bis = 160,
275 RosyBrown = 138,
276 RoyalBlue1 = 63,
277 Salmon1 = 209,
278 SandyBrown = 215,
279 SeaGreen1 = 84,
280 SeaGreen1Bis = 85,
281 SeaGreen2 = 83,
282 SeaGreen3 = 78,
283 SkyBlue1 = 117,
284 SkyBlue2 = 111,
285 SkyBlue3 = 74,
286 SlateBlue1 = 99,
287 SlateBlue3 = 61,
288 SlateBlue3Bis = 62,
289 SpringGreen1 = 48,
290 SpringGreen2 = 42,
291 SpringGreen2Bis = 47,
292 SpringGreen3 = 35,
293 SpringGreen3Bis = 41,
294 SpringGreen4 = 29,
295 SteelBlue = 67,
296 SteelBlue1 = 75,
297 SteelBlue1Bis = 81,
298 SteelBlue3 = 68,
299 Tan = 180,
300 Thistle1 = 225,
301 Thistle3 = 182,
302 Turquoise2 = 45,
303 Turquoise4 = 30,
304 Violet = 177,
305 Wheat1 = 229,
306 Wheat4 = 101,
307 Yellow1 = 226,
308 Yellow2 = 190,
309 Yellow3 = 148,
310 Yellow3Bis = 184,
311 Yellow4 = 100,
312 Yellow4Bis = 106,
313 };
314 // clang-format on
315
316 // --- Operators ------
317 bool operator==(const Color& rhs) const;
318 bool operator!=(const Color& rhs) const;
319
320 std::string Print(bool is_background_color) const;
321 bool IsOpaque() const { return alpha_ == 255; }
322
323 private:
324 enum class ColorType : uint8_t {
325 Palette1,
326 Palette16,
327 Palette256,
328 TrueColor,
329 };
330 ColorType type_ = ColorType::Palette1;
331 uint8_t red_ = 0;
332 uint8_t green_ = 0;
333 uint8_t blue_ = 0;
334 uint8_t alpha_ = 0;
335};
336
337 inline namespace literals {
338
339/// @brief Creates a color from a combined hex RGB representation,
340/// e.g. 0x808000_rgb
341 Color operator""_rgb(unsigned long long int combined);
342
343} // namespace literals
344
345} // namespace ftxui
346
347#endif // FTXUI_SCREEN_COLOR_HPP
ftxui::Color::Color
Color()
Build a transparent color.
ftxui::Color::HSV
static Color HSV(uint8_t hue, uint8_t saturation, uint8_t value)
Build a Color from its HSV representation. https://en.wikipedia.org/wiki/HSL_and_HSV.
Definition screen/color.cpp:198
ftxui::Color::RGBA
static Color RGBA(uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha)
Build a Color from its RGBA representation. https://en.wikipedia.org/wiki/RGB_color_model.
Definition screen/color.cpp:159
ftxui::Color::Blend
static Color Blend(const Color &lhs, const Color &rhs)
Blend two colors together using the alpha channel.
Definition screen/color.cpp:272
ftxui::Color::operator!=
bool operator!=(const Color &rhs) const
Definition screen/color.cpp:42
ftxui::Color::operator==
bool operator==(const Color &rhs) const
Definition screen/color.cpp:37
ftxui::Color::IsOpaque
bool IsOpaque() const
Definition color.hpp:321
ftxui::Color::Palette1
Palette1
Definition color.hpp:49
ftxui::Color::Default
@ Default
Definition color.hpp:50
ftxui::Color::RGB
static Color RGB(uint8_t red, uint8_t green, uint8_t blue)
Build a Color from its RGB representation. https://en.wikipedia.org/wiki/RGB_color_model.
Definition screen/color.cpp:147
ftxui::Color::Palette256
Palette256
Definition color.hpp:72
ftxui::Color::Orange3
@ Orange3
Definition color.hpp:247
ftxui::Color::Purple
@ Purple
Definition color.hpp:267
ftxui::Color::Grey19
@ Grey19
Definition color.hpp:156
ftxui::Color::DarkSeaGreen3
@ DarkSeaGreen3
Definition color.hpp:116
ftxui::Color::NavyBlue
@ NavyBlue
Definition color.hpp:245
ftxui::Color::LightGoldenrod2
@ LightGoldenrod2
Definition color.hpp:199
ftxui::Color::MediumOrchid1Bis
@ MediumOrchid1Bis
Definition color.hpp:229
ftxui::Color::SteelBlue1
@ SteelBlue1
Definition color.hpp:296
ftxui::Color::Turquoise2
@ Turquoise2
Definition color.hpp:302
ftxui::Color::PaleGreen3Bis
@ PaleGreen3Bis
Definition color.hpp:257
ftxui::Color::DarkSlateGray3
@ DarkSlateGray3
Definition color.hpp:122
ftxui::Color::HotPink3Bis
@ HotPink3Bis
Definition color.hpp:187
ftxui::Color::LightSlateGrey
@ LightSlateGrey
Definition color.hpp:216
ftxui::Color::LightPink1
@ LightPink1
Definition color.hpp:205
ftxui::Color::DarkOrange3
@ DarkOrange3
Definition color.hpp:107
ftxui::Color::LightPink4
@ LightPink4
Definition color.hpp:207
ftxui::Color::SteelBlue3
@ SteelBlue3
Definition color.hpp:298
ftxui::Color::DeepSkyBlue4
@ DeepSkyBlue4
Definition color.hpp:138
ftxui::Color::DarkViolet
@ DarkViolet
Definition color.hpp:124
ftxui::Color::RoyalBlue1
@ RoyalBlue1
Definition color.hpp:276
ftxui::Color::DarkMagentaBis
@ DarkMagentaBis
Definition color.hpp:99
ftxui::Color::PaleGreen1Bis
@ PaleGreen1Bis
Definition color.hpp:255
ftxui::Color::MistyRose1
@ MistyRose1
Definition color.hpp:241
ftxui::Color::Grey50
@ Grey50
Definition color.hpp:166
ftxui::Color::MediumOrchid1
@ MediumOrchid1
Definition color.hpp:228
ftxui::Color::Grey93
@ Grey93
Definition color.hpp:182
ftxui::Color::DarkCyan
@ DarkCyan
Definition color.hpp:94
ftxui::Color::Pink3
@ Pink3
Definition color.hpp:262
ftxui::Color::Yellow1
@ Yellow1
Definition color.hpp:307
ftxui::Color::SeaGreen2
@ SeaGreen2
Definition color.hpp:281
ftxui::Color::HotPink2
@ HotPink2
Definition color.hpp:185
ftxui::Color::Grey42
@ Grey42
Definition color.hpp:164
ftxui::Color::Grey66
@ Grey66
Definition color.hpp:172
ftxui::Color::Purple4Bis
@ Purple4Bis
Definition color.hpp:270
ftxui::Color::Khaki1
@ Khaki1
Definition color.hpp:193
ftxui::Color::Orange1
@ Orange1
Definition color.hpp:246
ftxui::Color::Chartreuse3Bis
@ Chartreuse3Bis
Definition color.hpp:86
ftxui::Color::DarkOrange
@ DarkOrange
Definition color.hpp:106
ftxui::Color::LightPink3
@ LightPink3
Definition color.hpp:206
ftxui::Color::LightGoldenrod1
@ LightGoldenrod1
Definition color.hpp:198
ftxui::Color::LightSkyBlue3
@ LightSkyBlue3
Definition color.hpp:213
ftxui::Color::DeepPink4Bis
@ DeepPink4Bis
Definition color.hpp:132
ftxui::Color::Wheat1
@ Wheat1
Definition color.hpp:305
ftxui::Color::DarkSlateGray2
@ DarkSlateGray2
Definition color.hpp:121
ftxui::Color::Red3Bis
@ Red3Bis
Definition color.hpp:274
ftxui::Color::Orchid
@ Orchid
Definition color.hpp:251
ftxui::Color::DarkMagenta
@ DarkMagenta
Definition color.hpp:98
ftxui::Color::PaleTurquoise1
@ PaleTurquoise1
Definition color.hpp:258
ftxui::Color::Grey0
@ Grey0
Definition color.hpp:152
ftxui::Color::MediumPurple3Bis
@ MediumPurple3Bis
Definition color.hpp:236
ftxui::Color::Grey69
@ Grey69
Definition color.hpp:173
ftxui::Color::SkyBlue3
@ SkyBlue3
Definition color.hpp:285
ftxui::Color::Chartreuse3
@ Chartreuse3
Definition color.hpp:85
ftxui::Color::Grey78
@ Grey78
Definition color.hpp:177
ftxui::Color::Magenta1
@ Magenta1
Definition color.hpp:221
ftxui::Color::LightGoldenrod3
@ LightGoldenrod3
Definition color.hpp:202
ftxui::Color::LightGreenBis
@ LightGreenBis
Definition color.hpp:204
ftxui::Color::Chartreuse2
@ Chartreuse2
Definition color.hpp:83
ftxui::Color::Cyan1
@ Cyan1
Definition color.hpp:90
ftxui::Color::Green4
@ Green4
Definition color.hpp:150
ftxui::Color::Red3
@ Red3
Definition color.hpp:273
ftxui::Color::DarkSeaGreen
@ DarkSeaGreen
Definition color.hpp:111
ftxui::Color::Plum2
@ Plum2
Definition color.hpp:264
ftxui::Color::OrangeRed1
@ OrangeRed1
Definition color.hpp:250
ftxui::Color::DarkSeaGreen4Bis
@ DarkSeaGreen4Bis
Definition color.hpp:119
ftxui::Color::LightSkyBlue3Bis
@ LightSkyBlue3Bis
Definition color.hpp:214
ftxui::Color::Grey58
@ Grey58
Definition color.hpp:169
ftxui::Color::Purple3
@ Purple3
Definition color.hpp:268
ftxui::Color::Khaki3
@ Khaki3
Definition color.hpp:194
ftxui::Color::DarkOrange3Bis
@ DarkOrange3Bis
Definition color.hpp:108
ftxui::Color::Grey15
@ Grey15
Definition color.hpp:155
ftxui::Color::IndianRed1
@ IndianRed1
Definition color.hpp:190
ftxui::Color::DarkKhaki
@ DarkKhaki
Definition color.hpp:97
ftxui::Color::IndianRed1Bis
@ IndianRed1Bis
Definition color.hpp:191
ftxui::Color::DarkOliveGreen1
@ DarkOliveGreen1
Definition color.hpp:100
ftxui::Color::DodgerBlue2
@ DodgerBlue2
Definition color.hpp:142
ftxui::Color::Aquamarine1Bis
@ Aquamarine1Bis
Definition color.hpp:74
ftxui::Color::DarkOliveGreen1Bis
@ DarkOliveGreen1Bis
Definition color.hpp:101
ftxui::Color::MediumPurple2Bis
@ MediumPurple2Bis
Definition color.hpp:234
ftxui::Color::LightSalmon1
@ LightSalmon1
Definition color.hpp:208
ftxui::Color::DarkRed
@ DarkRed
Definition color.hpp:109
ftxui::Color::SpringGreen3
@ SpringGreen3
Definition color.hpp:292
ftxui::Color::SeaGreen3
@ SeaGreen3
Definition color.hpp:282
ftxui::Color::HotPink3
@ HotPink3
Definition color.hpp:186
ftxui::Color::MediumOrchid3
@ MediumOrchid3
Definition color.hpp:230
ftxui::Color::DeepSkyBlue1
@ DeepSkyBlue1
Definition color.hpp:134
ftxui::Color::LightYellow3
@ LightYellow3
Definition color.hpp:220
ftxui::Color::Red1
@ Red1
Definition color.hpp:272
ftxui::Color::Chartreuse2Bis
@ Chartreuse2Bis
Definition color.hpp:84
ftxui::Color::SandyBrown
@ SandyBrown
Definition color.hpp:278
ftxui::Color::Yellow3
@ Yellow3
Definition color.hpp:309
ftxui::Color::Grey62
@ Grey62
Definition color.hpp:170
ftxui::Color::Grey84
@ Grey84
Definition color.hpp:179
ftxui::Color::DeepPink1Bis
@ DeepPink1Bis
Definition color.hpp:127
ftxui::Color::Grey54
@ Grey54
Definition color.hpp:168
ftxui::Color::Salmon1
@ Salmon1
Definition color.hpp:277
ftxui::Color::Grey37
@ Grey37
Definition color.hpp:162
ftxui::Color::Yellow3Bis
@ Yellow3Bis
Definition color.hpp:310
ftxui::Color::DodgerBlue1
@ DodgerBlue1
Definition color.hpp:141
ftxui::Color::DarkSeaGreen1Bis
@ DarkSeaGreen1Bis
Definition color.hpp:113
ftxui::Color::Plum4
@ Plum4
Definition color.hpp:266
ftxui::Color::DarkTurquoise
@ DarkTurquoise
Definition color.hpp:123
ftxui::Color::DarkGreen
@ DarkGreen
Definition color.hpp:96
ftxui::Color::MediumPurple3
@ MediumPurple3
Definition color.hpp:235
ftxui::Color::LightCyan3
@ LightCyan3
Definition color.hpp:197
ftxui::Color::LightGreen
@ LightGreen
Definition color.hpp:203
ftxui::Color::LightSeaGreen
@ LightSeaGreen
Definition color.hpp:211
ftxui::Color::Grey46
@ Grey46
Definition color.hpp:165
ftxui::Color::Chartreuse4
@ Chartreuse4
Definition color.hpp:87
ftxui::Color::PaleGreen3
@ PaleGreen3
Definition color.hpp:256
ftxui::Color::CadetBlue
@ CadetBlue
Definition color.hpp:80
ftxui::Color::SeaGreen1Bis
@ SeaGreen1Bis
Definition color.hpp:280
ftxui::Color::MediumTurquoise
@ MediumTurquoise
Definition color.hpp:239
ftxui::Color::NavajoWhite1
@ NavajoWhite1
Definition color.hpp:243
ftxui::Color::Cyan3
@ Cyan3
Definition color.hpp:92
ftxui::Color::Grey74
@ Grey74
Definition color.hpp:176
ftxui::Color::Grey53
@ Grey53
Definition color.hpp:167
ftxui::Color::DarkOliveGreen3Ter
@ DarkOliveGreen3Ter
Definition color.hpp:105
ftxui::Color::DarkSeaGreen3Bis
@ DarkSeaGreen3Bis
Definition color.hpp:117
ftxui::Color::PaleVioletRed1
@ PaleVioletRed1
Definition color.hpp:260
ftxui::Color::Chartreuse1
@ Chartreuse1
Definition color.hpp:82
ftxui::Color::LightSteelBlue1
@ LightSteelBlue1
Definition color.hpp:218
ftxui::Color::Thistle3
@ Thistle3
Definition color.hpp:301
ftxui::Color::Grey85
@ Grey85
Definition color.hpp:180
ftxui::Color::Grey3
@ Grey3
Definition color.hpp:159
ftxui::Color::DeepSkyBlue3Bis
@ DeepSkyBlue3Bis
Definition color.hpp:137
ftxui::Color::Orange4
@ Orange4
Definition color.hpp:248
ftxui::Color::IndianRedBis
@ IndianRedBis
Definition color.hpp:192
ftxui::Color::Orchid1
@ Orchid1
Definition color.hpp:252
ftxui::Color::MediumVioletRed
@ MediumVioletRed
Definition color.hpp:240
ftxui::Color::Green1
@ Green1
Definition color.hpp:147
ftxui::Color::SeaGreen1
@ SeaGreen1
Definition color.hpp:279
ftxui::Color::SpringGreen1
@ SpringGreen1
Definition color.hpp:289
ftxui::Color::Blue3
@ Blue3
Definition color.hpp:77
ftxui::Color::SteelBlue
@ SteelBlue
Definition color.hpp:295
ftxui::Color::Grey27
@ Grey27
Definition color.hpp:158
ftxui::Color::DeepSkyBlue2
@ DeepSkyBlue2
Definition color.hpp:135
ftxui::Color::Violet
@ Violet
Definition color.hpp:304
ftxui::Color::Gold3
@ Gold3
Definition color.hpp:145
ftxui::Color::LightGoldenrod2Ter
@ LightGoldenrod2Ter
Definition color.hpp:201
ftxui::Color::SlateBlue1
@ SlateBlue1
Definition color.hpp:286
ftxui::Color::DarkVioletBis
@ DarkVioletBis
Definition color.hpp:125
ftxui::Color::DeepSkyBlue4Ter
@ DeepSkyBlue4Ter
Definition color.hpp:140
ftxui::Color::DeepSkyBlue3
@ DeepSkyBlue3
Definition color.hpp:136
ftxui::Color::Grey7
@ Grey7
Definition color.hpp:174
ftxui::Color::MediumPurple
@ MediumPurple
Definition color.hpp:231
ftxui::Color::Green3Bis
@ Green3Bis
Definition color.hpp:149
ftxui::Color::LightSalmon3
@ LightSalmon3
Definition color.hpp:209
ftxui::Color::MediumOrchid
@ MediumOrchid
Definition color.hpp:227
ftxui::Color::Cornsilk1
@ Cornsilk1
Definition color.hpp:89
ftxui::Color::Blue1
@ Blue1
Definition color.hpp:76
ftxui::Color::Magenta2
@ Magenta2
Definition color.hpp:222
ftxui::Color::Green3
@ Green3
Definition color.hpp:148
ftxui::Color::Grey63
@ Grey63
Definition color.hpp:171
ftxui::Color::SkyBlue2
@ SkyBlue2
Definition color.hpp:284
ftxui::Color::LightCoral
@ LightCoral
Definition color.hpp:195
ftxui::Color::LightSkyBlue1
@ LightSkyBlue1
Definition color.hpp:212
ftxui::Color::Grey30
@ Grey30
Definition color.hpp:160
ftxui::Color::NavajoWhite3
@ NavajoWhite3
Definition color.hpp:244
ftxui::Color::PaleGreen1
@ PaleGreen1
Definition color.hpp:254
ftxui::Color::Grey89
@ Grey89
Definition color.hpp:181
ftxui::Color::DarkRedBis
@ DarkRedBis
Definition color.hpp:110
ftxui::Color::Plum1
@ Plum1
Definition color.hpp:263
ftxui::Color::Wheat4
@ Wheat4
Definition color.hpp:306
ftxui::Color::DarkBlue
@ DarkBlue
Definition color.hpp:93
ftxui::Color::RosyBrown
@ RosyBrown
Definition color.hpp:275
ftxui::Color::Grey100
@ Grey100
Definition color.hpp:153
ftxui::Color::Gold3Bis
@ Gold3Bis
Definition color.hpp:146
ftxui::Color::Grey35
@ Grey35
Definition color.hpp:161
ftxui::Color::Thistle1
@ Thistle1
Definition color.hpp:300
ftxui::Color::DarkOliveGreen2
@ DarkOliveGreen2
Definition color.hpp:102
ftxui::Color::Yellow4Bis
@ Yellow4Bis
Definition color.hpp:312
ftxui::Color::Pink1
@ Pink1
Definition color.hpp:261
ftxui::Color::Plum3
@ Plum3
Definition color.hpp:265
ftxui::Color::Tan
@ Tan
Definition color.hpp:299
ftxui::Color::CornflowerBlue
@ CornflowerBlue
Definition color.hpp:88
ftxui::Color::DarkGoldenrod
@ DarkGoldenrod
Definition color.hpp:95
ftxui::Color::Yellow4
@ Yellow4
Definition color.hpp:311
ftxui::Color::MistyRose3
@ MistyRose3
Definition color.hpp:242
ftxui::Color::LightSlateBlue
@ LightSlateBlue
Definition color.hpp:215
ftxui::Color::Grey82
@ Grey82
Definition color.hpp:178
ftxui::Color::Blue3Bis
@ Blue3Bis
Definition color.hpp:78
ftxui::Color::BlueViolet
@ BlueViolet
Definition color.hpp:79
ftxui::Color::LightGoldenrod2Bis
@ LightGoldenrod2Bis
Definition color.hpp:200
ftxui::Color::DarkSeaGreen4
@ DarkSeaGreen4
Definition color.hpp:118
ftxui::Color::Magenta2Bis
@ Magenta2Bis
Definition color.hpp:223
ftxui::Color::DeepPink3Bis
@ DeepPink3Bis
Definition color.hpp:130
ftxui::Color::Turquoise4
@ Turquoise4
Definition color.hpp:303
ftxui::Color::HotPinkBis
@ HotPinkBis
Definition color.hpp:188
ftxui::Color::MediumPurple2
@ MediumPurple2
Definition color.hpp:233
ftxui::Color::DarkSeaGreen2Bis
@ DarkSeaGreen2Bis
Definition color.hpp:115
ftxui::Color::Grey11
@ Grey11
Definition color.hpp:154
ftxui::Color::SkyBlue1
@ SkyBlue1
Definition color.hpp:283
ftxui::Color::Yellow2
@ Yellow2
Definition color.hpp:308
ftxui::Color::Magenta3Ter
@ Magenta3Ter
Definition color.hpp:226
ftxui::Color::SpringGreen2
@ SpringGreen2
Definition color.hpp:290
ftxui::Color::DeepPink4Ter
@ DeepPink4Ter
Definition color.hpp:133
ftxui::Color::LightCyan1Bis
@ LightCyan1Bis
Definition color.hpp:196
ftxui::Color::LightSalmon3Bis
@ LightSalmon3Bis
Definition color.hpp:210
ftxui::Color::Purple4
@ Purple4
Definition color.hpp:269
ftxui::Color::CadetBlueBis
@ CadetBlueBis
Definition color.hpp:81
ftxui::Color::Cyan2
@ Cyan2
Definition color.hpp:91
ftxui::Color::GreenYellow
@ GreenYellow
Definition color.hpp:151
ftxui::Color::Honeydew2
@ Honeydew2
Definition color.hpp:183
ftxui::Color::SpringGreen2Bis
@ SpringGreen2Bis
Definition color.hpp:291
ftxui::Color::DeepPink1
@ DeepPink1
Definition color.hpp:126
ftxui::Color::DeepSkyBlue4Bis
@ DeepSkyBlue4Bis
Definition color.hpp:139
ftxui::Color::Orange4Bis
@ Orange4Bis
Definition color.hpp:249
ftxui::Color::SlateBlue3Bis
@ SlateBlue3Bis
Definition color.hpp:288
ftxui::Color::DarkSeaGreen2
@ DarkSeaGreen2
Definition color.hpp:114
ftxui::Color::DarkOliveGreen3Bis
@ DarkOliveGreen3Bis
Definition color.hpp:104
ftxui::Color::Grey23
@ Grey23
Definition color.hpp:157
ftxui::Color::HotPink
@ HotPink
Definition color.hpp:184
ftxui::Color::Magenta3
@ Magenta3
Definition color.hpp:224
ftxui::Color::Orchid2
@ Orchid2
Definition color.hpp:253
ftxui::Color::Aquamarine3
@ Aquamarine3
Definition color.hpp:75
ftxui::Color::IndianRed
@ IndianRed
Definition color.hpp:189
ftxui::Color::DarkSeaGreen1
@ DarkSeaGreen1
Definition color.hpp:112
ftxui::Color::LightSteelBlue
@ LightSteelBlue
Definition color.hpp:217
ftxui::Color::MediumSpringGreen
@ MediumSpringGreen
Definition color.hpp:238
ftxui::Color::Grey39
@ Grey39
Definition color.hpp:163
ftxui::Color::SlateBlue3
@ SlateBlue3
Definition color.hpp:287
ftxui::Color::Grey70
@ Grey70
Definition color.hpp:175
ftxui::Color::PurpleBis
@ PurpleBis
Definition color.hpp:271
ftxui::Color::MediumPurple4
@ MediumPurple4
Definition color.hpp:237
ftxui::Color::DarkOliveGreen3
@ DarkOliveGreen3
Definition color.hpp:103
ftxui::Color::DeepPink2
@ DeepPink2
Definition color.hpp:128
ftxui::Color::Magenta3Bis
@ Magenta3Bis
Definition color.hpp:225
ftxui::Color::Gold1
@ Gold1
Definition color.hpp:144
ftxui::Color::DeepPink4
@ DeepPink4
Definition color.hpp:131
ftxui::Color::SpringGreen3Bis
@ SpringGreen3Bis
Definition color.hpp:293
ftxui::Color::SpringGreen4
@ SpringGreen4
Definition color.hpp:294
ftxui::Color::SteelBlue1Bis
@ SteelBlue1Bis
Definition color.hpp:297
ftxui::Color::Aquamarine1
@ Aquamarine1
Definition color.hpp:73
ftxui::Color::MediumPurple1
@ MediumPurple1
Definition color.hpp:232
ftxui::Color::LightSteelBlue3
@ LightSteelBlue3
Definition color.hpp:219
ftxui::Color::DodgerBlue3
@ DodgerBlue3
Definition color.hpp:143
ftxui::Color::DarkSlateGray1
@ DarkSlateGray1
Definition color.hpp:120
ftxui::Color::DeepPink3
@ DeepPink3
Definition color.hpp:129
ftxui::Color::PaleTurquoise4
@ PaleTurquoise4
Definition color.hpp:259
ftxui::Color::Print
std::string Print(bool is_background_color) const
Definition screen/color.cpp:46
ftxui::Color::Palette16
Palette16
Definition color.hpp:53
ftxui::Color::RedLight
@ RedLight
Definition color.hpp:63
ftxui::Color::CyanLight
@ CyanLight
Definition color.hpp:68
ftxui::Color::YellowLight
@ YellowLight
Definition color.hpp:65
ftxui::Color::MagentaLight
@ MagentaLight
Definition color.hpp:67
ftxui::Color::GreenLight
@ GreenLight
Definition color.hpp:64
ftxui::Color::Cyan
@ Cyan
Definition color.hpp:60
ftxui::Color::Magenta
@ Magenta
Definition color.hpp:59
ftxui::Color::White
@ White
Definition color.hpp:69
ftxui::Color::Yellow
@ Yellow
Definition color.hpp:57
ftxui::Color::Black
@ Black
Definition color.hpp:54
ftxui::Color::Green
@ Green
Definition color.hpp:56
ftxui::Color::Red
@ Red
Definition color.hpp:55
ftxui::Color::GrayDark
@ GrayDark
Definition color.hpp:62
ftxui::Color::GrayLight
@ GrayLight
Definition color.hpp:61
ftxui::Color::Blue
@ Blue
Definition color.hpp:58
ftxui::Color::BlueLight
@ BlueLight
Definition color.hpp:66
ftxui::Color::Interpolate
static Color Interpolate(float t, const Color &a, const Color &b)
Definition screen/color.cpp:203
ftxui::Color::HSVA
static Color HSVA(uint8_t hue, uint8_t saturation, uint8_t value, uint8_t alpha)
Build a Color from its HSV representation. https://en.wikipedia.org/wiki/HSL_and_HSV.
Definition screen/color.cpp:171
ftxui::Color
Color is a class that represents a color in the terminal user interface.
Definition color.hpp:22
ftxui
The FTXUI ftxui:: namespace.
Definition animation.hpp:10