TermOx
windows_console.hpp
1 #ifndef TERMOX_PAINTER_PALETTE_WINDOWS_CONSOLE_HPP
2 #define TERMOX_PAINTER_PALETTE_WINDOWS_CONSOLE_HPP
3 #include <termox/painter/color.hpp>
4 
5 namespace ox::windows_console {
6 
7 inline constexpr auto Black = Color::Background;
8 inline constexpr auto Red = Color{1};
9 inline constexpr auto Green = Color{2};
10 inline constexpr auto Olive = Color{3};
11 inline constexpr auto Blue = Color{4};
12 inline constexpr auto Violet = Color{5};
13 inline constexpr auto Azure = Color{6};
14 inline constexpr auto Silver = Color{7};
15 inline constexpr auto Gray = Color{8};
16 inline constexpr auto Light_red = Color{9};
17 inline constexpr auto Light_green = Color{10};
18 inline constexpr auto Yellow = Color{11};
19 inline constexpr auto Light_blue = Color{12};
20 inline constexpr auto Magenta = Color{13};
21 inline constexpr auto Cyan = Color{14};
22 inline constexpr auto White = Color::Foreground;
23 
25 
26 inline auto const palette = Palette{
27  /* clang-format off */
28  {Black, RGB{0x0c0c0c}},
29  {Red, RGB{0xc50f1f}},
30  {Green, RGB{0x13a10e}},
31  {Olive, RGB{0xc19c00}},
32  {Blue, RGB{0x0037da}},
33  {Violet, RGB{0x881798}},
34  {Azure, RGB{0x3a96dd}},
35  {Silver, RGB{0xcccccc}},
36  {Gray, RGB{0x767676}},
37  {Light_red, RGB{0xe74856}},
38  {Light_green, RGB{0x16c60c}},
39  {Yellow, RGB{0xf9f1a5}},
40  {Light_blue, RGB{0x3b78ff}},
41  {Magenta, RGB{0xb4009e}},
42  {Cyan, RGB{0x61d6d6}},
43  {White, RGB{0xf2f2f2}},
44  /* clang-format on */
45 };
46 
47 } // namespace ox::windows_console
48 #endif // TERMOX_PAINTER_PALETTE_WINDOWS_CONSOLE_HPP