1 #ifndef TERMOX_PAINTER_PALETTE_ZX_SPECTRUM_HPP
2 #define TERMOX_PAINTER_PALETTE_ZX_SPECTRUM_HPP
3 #include <termox/painter/color.hpp>
5 namespace ox::zx_spectrum {
7 inline constexpr
auto Black = Color::Background;
8 inline constexpr
auto Dark_red = Color{1};
9 inline constexpr
auto Dark_green = Color{2};
10 inline constexpr
auto Olive = Color{3};
11 inline constexpr
auto Dark_blue = Color{4};
12 inline constexpr
auto Dark_violet = Color{5};
13 inline constexpr
auto Dark_cyan = Color{6};
14 inline constexpr
auto Silver = Color{7};
15 inline constexpr
auto Black_2 = Color{8};
16 inline constexpr
auto Red = Color{9};
17 inline constexpr
auto Green = Color{10};
18 inline constexpr
auto Yellow = Color{11};
19 inline constexpr
auto Blue = Color{12};
20 inline constexpr
auto Violet = Color{13};
21 inline constexpr
auto Cyan = Color{14};
22 inline constexpr
auto White = Color::Foreground;
26 inline auto const palette = Palette{
28 {Black, RGB{0x000000}},
29 {Dark_red, RGB{0xd62816}},
30 {Dark_green, RGB{0x00c525}},
31 {Olive, RGB{0xccc82a}},
32 {Dark_blue, RGB{0x0022c7}},
33 {Dark_violet, RGB{0xd433c7}},
34 {Dark_cyan, RGB{0x00c7c9}},
35 {Silver, RGB{0xcacaca}},
36 {Black_2, RGB{0x000000}},
38 {Green, RGB{0x00f92f}},
39 {Yellow, RGB{0xfffc36}},
40 {Blue, RGB{0x002bfb}},
41 {Violet, RGB{0xff40fc}},
42 {Cyan, RGB{0x00fbfe}},
43 {White, RGB{0xffffff}},