diff options
Diffstat (limited to 'palette.h')
-rw-r--r-- | palette.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/palette.h b/palette.h new file mode 100644 index 0000000..15862a5 --- /dev/null +++ b/palette.h | |||
@@ -0,0 +1,20 @@ | |||
1 | #ifndef PALETTE_H_09303AB4 | ||
2 | #define PALETTE_H_09303AB4 | ||
3 | |||
4 | #include <string> | ||
5 | #include <vector> | ||
6 | #include "color.h" | ||
7 | |||
8 | class palette { | ||
9 | public: | ||
10 | |||
11 | explicit palette(std::string colors); | ||
12 | |||
13 | Color getShade(double c) const; | ||
14 | |||
15 | private: | ||
16 | |||
17 | std::vector<Color> gradient_; | ||
18 | }; | ||
19 | |||
20 | #endif /* end of include guard: PALETTE_H_09303AB4 */ | ||