Created
September 17, 2012 18:47
-
-
Save ZweiSteinSoft/3739025 to your computer and use it in GitHub Desktop.
Find out if black or white text is better to read on a certain background color
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var color = parseInt('0x' + label.color) > (0xffffff / 2) ? 'black' : 'white'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment