This file contains 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
/** | |
* Get contrast text color for a background color by calculating the luminance | |
* of the given input color. | |
* | |
* @param color Text background color | |
* @return Contrasting text color | |
*/ | |
contrastColor(color) | |
RGB = { | |
r: red(color) |