Open khisakuni opened 8 years ago
I'm not sure how this should be defined with grayscale colors. Special casing white/black would still leave the same issue with something like:
tinycolor("rgb(1,1,1)").complement().toRgbString(); // "rgb(1, 1, 1)"
@bgrins Maybe the greyscale colors could have their lightness inverted too. For example if we have something like tinycolor({ h: 0, s: 0, l: .3 });
, we would make that tinycolor({ h: 0, s: 0, l: .7 });
complement
method returns white as the complement of black, and black as the complement of white.