bgrins / TinyColor

Fast, small color manipulation and conversion for JavaScript
https://bgrins.github.io/TinyColor/
MIT License
5.08k stars 438 forks source link

Complement is not working #91

Closed joetm closed 9 years ago

joetm commented 9 years ago

var ccolor = tinycolor('#FFFFFF').complement().toHexString(); console.log(ccolor);

//expected output: #000000 //actual output: #FFFFFF

bgrins commented 9 years ago

Should the complement of white actually be black? I would think white's complement would be white and black's complement should be black

joetm commented 9 years ago

Okay, I understood it differently...