KrisLibrary  1.0.0
ColorGradient.h
1 #ifndef COLOR_GRADIENT_H
2 #define COLOR_GRADIENT_H
3 
4 #include "GLColor.h"
5 #include <vector>
6 
7 namespace GLDraw {
8 
10 {
11  ColorGradient();
12  ColorGradient(const GLColor& a);
13  ColorGradient(const GLColor& a,const GLColor& b);
14  void SetConstant(const GLColor& c);
15  void SetBlend(const GLColor& a,const GLColor& b);
16  void SetHue(float hue);
17  void SetAlpha(float alpha);
18  void Eval(float u,GLColor& c) const;
19 
20  std::vector<float> params;
21  std::vector<GLColor> colors;
22 };
23 
24 } //namespace GLDraw
25 
26 #endif
27 
Contains all definitions in the GLDraw package.
Definition: AnyGeometry.h:13
An rgba color.
Definition: GLColor.h:9
Definition: ColorGradient.h:9