color-difference-finder

0.0.1 • Public • Published

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

/color-difference-finder/

    Package Sidebar

    Install

    npm i color-difference-finder

    Weekly Downloads

    2

    Version

    0.0.1

    License

    ISC

    Unpacked Size

    2.12 kB

    Total Files

    3

    Last publish

    Collaborators

    • anasikhlas