20 #ifndef sequentialColorMap_hpp 21 #define sequentialColorMap_hpp 66 void resize(
int num_values);
73 ofColor
sample(
float position);
78 static map<string, vector<ofColor>>
fabric_;
void resize(int num_values)
resize the colormap
Definition: ofxOuiColormap.cpp:63
virtual ~Colormap()
Destructor.
Definition: ofxOuiColormap.cpp:35
ofColor sample(float position)
Definition: ofxOuiColormap.cpp:69
string current_map_name_
Definition: ofxOuiColormap.hpp:79
Sequential Colormap generator.
Definition: ofxOuiColormap.hpp:31
bool setByName(string name)
set the colormap by name
Definition: ofxOuiColormap.cpp:37
Colormap()
Default Constructor.
Definition: ofxOuiColormap.cpp:30
void generateValues()
Definition: ofxOuiColormap.cpp:73
static map< string, vector< ofColor > > fabric_
Definition: ofxOuiColormap.hpp:78
Definition: ofxOuiColormap.hpp:25
string getName() const
get the name of the current colormap
Definition: ofxOuiColormap.cpp:61
void setBaseColors(vector< ofColor > colors)
set a colormap from a vector of base colors
Definition: ofxOuiColormap.cpp:49
vector< ofColor > values
vector of colors of the colormap
Definition: ofxOuiColormap.hpp:71
vector< ofColor > base_colors_
Definition: ofxOuiColormap.hpp:77