You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, if you take a look into the project history, you'll see that I changed the behavior of the complementary function with version 1.6: afe53c4
I decided to change this, because a mathematical complement isn't really useful in practice. That's why I used a visual complement, like when you rotate the hue of the HSL spectrum.
If you really need the mathematical complement, use xcolor like so:
var tmp = $.xcolor.test('#111313').getInt();
if (tmp !== null) {
$.xcolor.test(tmp ^ 0xffffff).getHex();
} else {
// original color couldn't be parsed
}
it pick black if you pick black or almost black instead of white
The text was updated successfully, but these errors were encountered: