Merge pull request #264 from zoff-music/feature/complementary-bar

Improved colors for more faded
This commit is contained in:
Kasper Rynning-Tønnesen
2018-01-17 15:19:06 +01:00
committed by GitHub

View File

@@ -199,6 +199,7 @@ var Helper = {
} }
if(l>0.5 && light)l=0.4; //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; 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)+"%)"; return "hsl("+Math.floor(h*360)+", "+Math.floor(s*100)+"%, "+Math.floor(l*100)+"%)";
}, },