Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

colour-proximity

gausie54GPLv30.0.2

Get a value of the proximity of two hex colours.

color, colour, proximity, closeness, similarity, L*a*b*, Lab

readme

colour-proximity

Get a value of the proximity of two hex colours.

Example

colour-proximity.proximity("#ffffff","#fffffe")    // 1
colour-proximity.proximity("#ffffff","#000000")    // 441.6729559300637

Install

Use node with npm:

npm install colour-proximity