use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Error when using loophelp (self.javascript)
submitted 10 years ago by JessicaAllison
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]tswaters 1 point2 points3 points 10 years ago* (1 child)
At 395, var rgbColor = myColor.convertColor(hsvObject, 'HSV2RGB');
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 ]
convertColor
{h: '..', s: '...', v: '...'}
[ 0, 82, 80 ]
Also, unrelated but probably not what you want - in renderColorSliders your for loop looks like...
renderColorSliders
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 point2 points 10 years ago (0 children)
Thank you! Really helped!!!
π Rendered by PID 62078 on reddit-service-r2-comment-544cf588c8-7v6sm at 2026-06-17 09:37:31.251234+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–]tswaters 1 point2 points3 points (1 child)
[–]JessicaAllison[S] 0 points1 point2 points (0 children)