Adjust the color ID contrast threshold.

Totally not arbitrary edition.
This commit is contained in:
Mayhem 2013-08-23 02:31:23 +02:00
parent cb498db8df
commit b394a81494

View File

@ -27,7 +27,7 @@ IDColor =
(hash >> 16) & 0xFF
(hash >> 8) & 0xFF
]
rgb.push if (rgb[0] * 0.299 + rgb[1] * 0.587 + rgb[2] * 0.114) > 125
rgb.push if (rgb[0] * 0.299 + rgb[1] * 0.587 + rgb[2] * 0.114) > 170
'black'
else
'white'