diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-08-15 18:45:29 -0400 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-08-15 18:45:29 -0400 |
| commit | 0baed246b6f287e1c03519536011f34e87d19920 (patch) | |
| tree | d9eb44f28d8ad5edf7e78f47e3bdb830114a7432 /palette.h | |
| parent | d7fbb904d0dc70d1eada1dbb5f57f2ee9e5b399f (diff) | |
| download | infinite-modern.tar.gz infinite-modern.tar.bz2 infinite-modern.zip | |
Started to modernize bot (this is completely broken) modern
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 */ | ||
