Improved colors for more faded

This commit is contained in:
Kasper Rynning-Tønnesen
2018-01-17 15:18:29 +01:00
parent 7135c594e3
commit 08195afdcb

View File

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