Skip to content

Instantly share code, notes, and snippets.

@jdkealy jdkealy/gist:8985571
Created Feb 13, 2014

Embed
What would you like to do?
colors: function(){
var colorGenerator = new Correlate.Color.Generator();
var colors = colorGenerator.generateColors();
var obj = {
red:_.map(colorGenerator.generateSimilar(colors[1].hex, 5, true), _.accessor('hex')),
blue:_.map(colorGenerator.generateSimilar(colors[0].hex, 5, true), _.accessor('hex'))
};
console.log(colors[1].hex, _.first(obj.red));
return obj;
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.