From b394a81494bb4ddf64d77e0b42caf69eaebea870 Mon Sep 17 00:00:00 2001 From: Mayhem Date: Fri, 23 Aug 2013 02:31:23 +0200 Subject: [PATCH] Adjust the color ID contrast threshold. Totally not arbitrary edition. --- src/Miscellaneous/IDColor.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Miscellaneous/IDColor.coffee b/src/Miscellaneous/IDColor.coffee index 25ff81247..e3ae50715 100644 --- a/src/Miscellaneous/IDColor.coffee +++ b/src/Miscellaneous/IDColor.coffee @@ -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'