Merge pull request #1733 from Synchro/master

Remove alpha from contrast calc
This commit is contained in:
Luke Page
2013-12-17 16:13:53 -08:00

View File

@@ -206,7 +206,7 @@ tree.functions = {
} else {
threshold = number(threshold);
}
if ((color.luma() * color.alpha) < threshold) {
if (color.luma() < threshold) {
return light;
} else {
return dark;