Closed joetm closed 9 years ago
var ccolor = tinycolor('#FFFFFF').complement().toHexString(); console.log(ccolor);
//expected output: #000000 //actual output: #FFFFFF
Should the complement of white actually be black? I would think white's complement would be white and black's complement should be black
Okay, I understood it differently...
var ccolor = tinycolor('#FFFFFF').complement().toHexString(); console.log(ccolor);
//expected output: #000000 //actual output: #FFFFFF