0.0.1 • Published 2 years ago
color-difference-finder v0.0.1
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
0.0.1
2 years ago