is-hex-colors-unlike

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i is-hex-colors-unlike

Weekly Downloads

1

Version

1.0.1

License

ISC

Last publish

Collaborators

  • reald