TermOx
basic8.hpp
1 #ifndef TERMOX_PAINTER_PALETTE_BASIC8_HPP
2 #define TERMOX_PAINTER_PALETTE_BASIC8_HPP
3 #include <termox/painter/color.hpp>
4 
5 namespace ox::basic8 {
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::Foreground;
15 
17 inline auto const palette = Palette{
18  /* clang-format off */
19  {Black, Color_index{0}},
20  {Maroon, Color_index{1}},
21  {Green, Color_index{2}},
22  {Olive, Color_index{3}},
23  {Navy, Color_index{4}},
24  {Purple, Color_index{5}},
25  {Teal, Color_index{6}},
26  {Silver, Color_index{7}},
27  /* clang-format on */
28 };
29 
30 } // namespace ox::basic8
31 #endif // TERMOX_PAINTER_PALETTE_BASIC8_HPP