color-difference-finder
v0.0.1
Published
Find difference between two colors.
Downloads
13
Maintainers
Readme
Find difference between two colors
This package can be used to find the difference between two colors.
Installation
npm installation
npm install color-difference-finder
yarn installation
yarn add color-difference-finder
Usage
import { getDifference } from "color-difference-finder";
// Only supports hex colors
console.log(getDifference("#ff0000", "#00ff00")); // retuns 67
console.log(getDifference("#ffffff", "#ffffff")); // retuns 0
console.log(getDifference("#ffffff", "#000000")); // retuns 100