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