blob: 3a5cfb343459f9e6597c6673b88556e11a24584b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#ifndef PALETTE_H
#define PALETTE_H
#include <Magick++.h>
#include <random>
#include <vector>
class palette {
public:
palette(std::vector<Magick::Color> foci);
static palette randomPalette(std::mt19937& rng);
Magick::Color getColor(double shade) const;
private:
static const std::vector<Magick::ColorRGB> reds;
static const std::vector<Magick::ColorRGB> oranges;
static const std::vector<Magick::ColorRGB> yellows;
static const std::vector<Magick::ColorRGB> greens;
static const std::vector<Magick::ColorRGB> blues;
static const std::vector<Magick::ColorRGB> purples;
std::vector<Magick::Color> gradient_;
};
#endif
|