No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
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