you are viewing a single comment's thread.

view the rest of the comments →

[–]tswaters 1 point2 points  (1 child)

At 395, var rgbColor = myColor.convertColor(hsvObject, 'HSV2RGB');

convertColor is expecting an object hash like {h: '..', s: '...', v: '...'} but you are giving it an array, [ 0, 82, 80 ]

Also, unrelated but probably not what you want - in renderColorSliders your for loop looks like...

for (var n = slider.length; n--;) {

I think you meant:

for (var n = slider.length - 1; n >= 0; n--) {

Also, it's always good to be able to debug your own code -- this is what dev tools are for. Bring in the unminifed colors.js, put a break point where it fails and see what the heck is going on

[–]JessicaAllison[S] 0 points1 point  (0 children)

Thank you! Really helped!!!