This commit is contained in:
Kasper Rynning-Tønnesen
2015-06-10 22:13:04 +02:00

View File

@@ -300,5 +300,7 @@ function rgbToHsl(arr){
h /= 6; 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