From bdd9d2a898e7eec3d08994a285a3d0c454264088 Mon Sep 17 00:00:00 2001 From: "Nicolas A. Tonne" Date: Wed, 10 Jun 2015 21:41:20 +0200 Subject: [PATCH] I like light colors :>49% --- static/js/youtube.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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