Created
February 13, 2014 22:50
-
-
Save jdkealy/8985571 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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