diff --git a/static/js/youtube.js b/static/js/youtube.js index 345341e3..623a64d3 100755 --- a/static/js/youtube.js +++ b/static/js/youtube.js @@ -300,5 +300,7 @@ function rgbToHsl(arr){ h /= 6; } - return "hsl("+Math.floor(h*360)+", "+Math.floor(s*100)+"%, "+Math.floor(l*50)+"%)"; -} + if(l>0.5)l=0.5; //make sure it isnt too light + + return "hsl("+Math.floor(h*360)+", "+Math.floor(s*100)+"%, "+Math.floor(l*100)+"%)"; +}colorcolorcolor