No description, website, or topics provided.
C++ C
Latest commit 8ad0ebe Dec 23, 2012 @ofZach Update README.md
Permalink
Failed to load latest commit information.
example
src
.gitignore
README.md
fullColors.txt

README.md

ofxNamedColors

this comes from

http://en.wikipedia.org/wiki/List_of_colors_(compact)

with some modifications to the names to let them work as variable names. there's about 900+ named colors.

usage:

#include "ofxNamedColors.h"

ofSetColor(ofxNamedColors::alloyOrange);
ofSetColor(ofxNamedColors::classicRose);

everything is static inside the class. you can also use some helper functions for iterating through the whole list

setupColorMap();  // allocates the static map of name to ofColor and populated a vector of color/name mappings
ofxNamedColors::colorNames  // the vector of mappings. 

etc.

the example shows you all the colors:

example pic

as well as lets you sort them by hue, which can be useful:

example pic