#pragma once #include class GradientColor { public: float r, g, b; float w; GradientColor(float r_in, float g_in, float b_in) : r(r_in), g(g_in), b(b_in), w(1) { } }; class Gradient { public: Gradient(); void addColor(GradientColor c); std::vector &getRed(); std::vector &getGreen(); std::vector &getBlue(); void generate(unsigned int len); ~Gradient(); private: std::vector colors; std::vector r_val; std::vector g_val; std::vector b_val; };