I like light colors :>49%

This commit is contained in:
Nicolas A. Tonne
2015-06-10 21:41:20 +02:00
parent 18efd9676e
commit bdd9d2a898

View File

@@ -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