diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-03-03 18:17:37 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-03-03 18:17:37 -0500 |
commit | 7ba70196fd05a893a851f24a07868e3a1e9a7818 (patch) | |
tree | df12ddf03d142745c20056002a6cf7db790645b5 /palette.h | |
download | grunge-7ba70196fd05a893a851f24a07868e3a1e9a7818.tar.gz grunge-7ba70196fd05a893a851f24a07868e3a1e9a7818.tar.bz2 grunge-7ba70196fd05a893a851f24a07868e3a1e9a7818.zip |
Created bot
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 | ||