colour-proximity

0.0.2 • Public • Published

colour-proximity

Get a value of the proximity of two hex colours.

This package also exports rgb2lab([r,g,b]), a function that converts RGB to Lab* at Observer=2° and Illuminant=D65

Example

colour-proximity.proximity("#ffffff","#fffffe") // 0.5074219151751335
colour-proximity.proximity("#ffffff","#000000") // 100.000000625

Install

Use node with npm:

npm install colour-proximity

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    558
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    558
  • 0.0.1
    2

Package Sidebar

Install

npm i colour-proximity

Weekly Downloads

49

Version

0.0.2

License

GPLv3

Last publish

Collaborators

  • gausie