is-hex-colors-unlike
v1.0.1
Published
check out if two colors(hexadecimal string) are recognized by human eyes are different
Downloads
1
Maintainers
Readme
is Hex Colors Unlike
check out if two colors(hexadecimal string) are recognized by human eyes are different
Usage
var color1="#ff3388";
var color2="#ff3355";
//print false, cause they are similar by eyes
return isHexColorsUnlike(color1,color2);
var color3="#ddeeee";
var color4="#ffffff";
//print true
return isHexColorsUnlike(color3,color4);
//there is a third parameter could put is diviation, in 1-255
//print true too below!
return isHexColorsUnlike(color1,color2,10);