TermOx
commodore_64.hpp
1 #ifndef TERMOX_PAINTER_PALETTE_COMMODORE_64_HPP
2 #define TERMOX_PAINTER_PALETTE_COMMODORE_64_HPP
3 #include <termox/painter/color.hpp>
4 
5 namespace ox::commodore_64 {
6 
7 inline constexpr auto Black = Color::Background;
8 inline constexpr auto Dark_red = Color{1};
9 inline constexpr auto Green = Color{2};
10 inline constexpr auto Brown = Color{3};
11 inline constexpr auto Blue = Color{4};
12 inline constexpr auto Violet = Color{5};
13 inline constexpr auto Cyan = Color{6};
14 inline constexpr auto Light_gray = Color{7};
15 inline constexpr auto Gray = Color{8};
16 inline constexpr auto 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 Orange = Color{13};
21 inline constexpr auto Silver = Color{14};
22 inline constexpr auto White = Color::Foreground;
23 
25 
26 inline auto const palette = Palette{
27  /* clang-format off */
28  {Black, RGB{0x000000}},
29  {Dark_red, RGB{0x813338}},
30  {Green, RGB{0x56ac4d}},
31  {Brown, RGB{0x553800}},
32  {Blue, RGB{0x2e2c9b}},
33  {Violet, RGB{0x8e3c97}},
34  {Cyan, RGB{0x75cec8}},
35  {Light_gray, RGB{0x7b7b7b}},
36  {Gray, RGB{0x4a4a4a}},
37  {Red, RGB{0xc46c71}},
38  {Light_green, RGB{0xa9ff9f}},
39  {Yellow, RGB{0xedf171}},
40  {Light_blue, RGB{0x706deb}},
41  {Orange, RGB{0x8e5029}},
42  {Silver, RGB{0xb2b2b2}},
43  {White, RGB{0xffffff}},
44  /* clang-format on */
45 };
46 
47 } // namespace ox::commodore_64
48 #endif // TERMOX_PAINTER_PALETTE_COMMODORE_64_HPP