Closed benjamminf closed 10 years ago
Your code didn't pass JSHint. Make sure to run grunt test
before submitting a pull request.
Put line breaks after every line, because it makes the code easier to read.
Looks like you accidentally committed some .idea
files.
I need to stop using Git for Windows. It keeps sneaking in those .idea files even after ignoring them.
This looks good - thanks!
Added harmony method to API. Tests for all cases provided in the tester.js file. Based off the link provided in the issues section (goo.gl/R3FRlU).
Examples.
I want to generate the two analogous colours either side of my chosen colour:
The first argument,
'analgous'
is fairly self explanatory. The second,1
indicates the index in which the original color appears in the resulting list of harmonious colors. Calling with analogous will produce two analogous colors and the original color. Indicating that the original color be at the first index, it will then generate the two colors to the left (zeroth index) and the right (second index). If I were to specify 0 or 2, it will produce two analogous colors to the left or to the right. This indexing system works for all types.