Updated HSL

This commit is contained in:
Kasper Rynning-Tønnesen
2017-04-13 12:32:58 +02:00
parent fdb9cd7b43
commit 61b2e42472
4 changed files with 4 additions and 4 deletions

View File

@@ -184,7 +184,7 @@ var Helper = {
h /= 6;
}
if(l>0.5 && light)l=0.5; //make sure it isnt too light
if(l>0.5 && light)l=0.4; //make sure it isnt too light
else if(l<0.65 && !light)l=0.65;
return "hsl("+Math.floor(h*360)+", "+Math.floor(s*100)+"%, "+Math.floor(l*100)+"%)";