diff options
Diffstat (limited to 'palette.h')
-rw-r--r-- | palette.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/palette.h b/palette.h new file mode 100644 index 0000000..3a5cfb3 --- /dev/null +++ b/palette.h | |||
@@ -0,0 +1,30 @@ | |||
1 | #ifndef PALETTE_H | ||
2 | #define PALETTE_H | ||
3 | |||
4 | #include <Magick++.h> | ||
5 | #include <random> | ||
6 | #include <vector> | ||
7 | |||
8 | class palette { | ||
9 | public: | ||
10 | |||
11 | palette(std::vector<Magick::Color> foci); | ||
12 | |||
13 | static palette randomPalette(std::mt19937& rng); | ||
14 | |||
15 | Magick::Color getColor(double shade) const; | ||
16 | |||
17 | private: | ||
18 | |||
19 | static const std::vector<Magick::ColorRGB> reds; | ||
20 | static const std::vector<Magick::ColorRGB> oranges; | ||
21 | static const std::vector<Magick::ColorRGB> yellows; | ||
22 | static const std::vector<Magick::ColorRGB> greens; | ||
23 | static const std::vector<Magick::ColorRGB> blues; | ||
24 | static const std::vector<Magick::ColorRGB> purples; | ||
25 | |||
26 | std::vector<Magick::Color> gradient_; | ||
27 | |||
28 | }; | ||
29 | |||
30 | #endif | ||