TermOx
basic.hpp
1 #ifndef TERMOX_PAINTER_PALETTE_BASIC_HPP
2 #define TERMOX_PAINTER_PALETTE_BASIC_HPP
3 #include <termox/painter/color.hpp>
4 
5 namespace ox::basic {
6 
7 inline constexpr auto Black = Color::Background;
8 inline constexpr auto Maroon = Color{1};
9 inline constexpr auto Green = Color{2};
10 inline constexpr auto Olive = Color{3};
11 inline constexpr auto Navy = Color{4};
12 inline constexpr auto Purple = Color{5};
13 inline constexpr auto Teal = Color{6};
14 inline constexpr auto Silver = Color{7};
15 inline constexpr auto Grey = Color{8};
16 inline constexpr auto Red = Color{9};
17 inline constexpr auto Lime = Color{10};
18 inline constexpr auto Yellow = Color{11};
19 inline constexpr auto Blue = Color{12};
20 inline constexpr auto Fuchsia = Color{13};
21 inline constexpr auto Aqua = Color{14};
22 inline constexpr auto White = Color::Foreground;
23 
25 inline auto const palette = Palette{
26  /* clang-format off */
27  {Black, Color_index{0}},
28  {Maroon, Color_index{1}},
29  {Green, Color_index{2}},
30  {Olive, Color_index{3}},
31  {Navy, Color_index{4}},
32  {Purple, Color_index{5}},
33  {Teal, Color_index{6}},
34  {Silver, Color_index{7}},
35  {Grey, Color_index{8}},
36  {Red, Color_index{9}},
37  {Lime, Color_index{10}},
38  {Yellow, Color_index{11}},
39  {Blue, Color_index{12}},
40  {Fuchsia, Color_index{13}},
41  {Aqua, Color_index{14}},
42  {White, Color_index{15}},
43  /* clang-format on */
44 };
45 
46 } // namespace ox::basic
47 #endif // TERMOX_PAINTER_PALETTE_BASIC_HPP