Open Color Library
A node module to parse, render and interpret Open Color Format.
Install
npm install opencolor
Examples
Parsing and rendering OCO formats.
var oco = ; var tree = oco; // gives you a tree of the parsed OCO data var out = oco; // outputs a valid oco file of the tree
Creating OCO programmatically
var oco = ; // creates a root objectvar tree = ; // create a named color from a hex colorvar color = 'super color' ocoColorValue 'Color';var group = 'group' color;// set some metadata on the groupgroup;tree; var out = oco; // outputs a valid oco file of the tree
We're going to add more thorough Documentation soon!
Development
git clone https://github.com/opencolor-tools/opencolor-js.git
npm install
npm run test:watch