TermOx
teletext.hpp
1 #ifndef TERMOX_PAINTER_PALETTE_TELETEXT_HPP
2 #define TERMOX_PAINTER_PALETTE_TELETEXT_HPP
3 #include <termox/painter/color.hpp>
4 
5 namespace ox::teletext {
6 
7 inline constexpr auto Black = Color::Background;
8 inline constexpr auto Blue = Color{4};
9 inline constexpr auto Red = Color{1};
10 inline constexpr auto Magenta = Color{5};
11 inline constexpr auto Lime = Color{2};
12 inline constexpr auto Cyan = Color{6};
13 inline constexpr auto Yellow = Color{3};
14 inline constexpr auto White = Color::Foreground;
15 
17 inline auto const palette = Palette{
18  /* clang-format off */
19  {Black, RGB{0x000000}},
20  {Blue, RGB{0x0000ff}},
21  {Red, RGB{0xff0000}},
22  {Magenta, RGB{0xff00ff}},
23  {Lime, RGB{0x00ff00}},
24  {Cyan, RGB{0x00ffff}},
25  {Yellow, RGB{0xffff00}},
26  {White, RGB{0xffffff}},
27  /* clang-format on */
28 };
29 
30 } // namespace ox::teletext
31 #endif // TERMOX_PAINTER_PALETTE_TELETEXT_HPP