1.0.1 • Published 7 years ago

is-hex-colors-unlike v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

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);