color-space
Color space conversions and data
Last updated 11 years ago by dfcreative .
Repository · Bugs · Original npm · Tarball · package.json
$ npm install color-space 
SYNC missed versions from official npm registry.

Color-space test stable npm size

Collection of color spaces conversions & data.

Demo.

Usage

import space from 'color-space';

//convert lab to lch
var result = space.lab.lch([80,50,60]);

Spaces can be imported separately:

import rgb from 'color-space/rgb.js';
import hsl from 'color-space/hsl.js';

//convert rgb to hsl
rgb.hsl([200,230,100]);

API

<fromSpace>.<toSpace>(array);
<space>.name //space name
<space>.min //channel minimums
<space>.max //channel maximums
<space>.channel //channel names
<space>.alias //alias space names

Spaces

Contribute

Please fork, add color space with basic conversions to/from XYZ or RGB and tests. The goal of the project is the most complete set of color spaces with minimal uniform API.

Credits

Thanks to all scientists, who devoted their time to color research and conveyed their knowledge, for now we can use their formulas and code.

Alternatives

See also

  • color-api - color API proposal by Lea Verou

Current Tags

  • 3.6.0                                ...           latest (19 days ago)
  • 3.5.0                                ...           next (a month ago)

65 Versions

  • 3.6.0                                ...           19 days ago
  • 3.5.0                                ...           a month ago
  • 3.4.0                                ...           a month ago
  • 3.3.0                                ...           a month ago
  • 3.2.0                                ...           2 months ago
  • 3.1.0                                ...           4 months ago
  • 3.0.0                                ...           4 months ago
  • 3.0.0-rc.1                                ...           4 months ago
  • 3.0.0-rc.0                                ...           4 months ago
  • 3.0.0-next.0                                ...           4 months ago
  • 2.3.2                                ...           2 years ago
  • 2.3.1                                ...           2 years ago
  • 2.3.0                                ...           2 years ago
  • 2.2.0                                ...           2 years ago
  • 2.1.1                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           5 years ago
  • 1.16.0                                ...           9 years ago
  • 1.15.0                                ...           9 years ago
  • 1.14.7                                ...           10 years ago
  • 1.14.6                                ...           10 years ago
  • 1.14.5                                ...           10 years ago
  • 1.14.4                                ...           10 years ago
  • 1.14.3                                ...           11 years ago
  • 1.14.2                                ...           11 years ago
  • 1.14.1                                ...           11 years ago
  • 1.14.0                                ...           11 years ago
  • 1.13.0                                ...           11 years ago
  • 1.12.0                                ...           11 years ago
  • 1.11.2                                ...           11 years ago
  • 1.11.0                                ...           11 years ago
  • 1.10.0                                ...           11 years ago
  • 1.9.0                                ...           11 years ago
  • 1.8.0                                ...           11 years ago
  • 1.7.0                                ...           11 years ago
  • 1.6.0                                ...           11 years ago
  • 1.5.0                                ...           11 years ago
  • 1.4.1                                ...           11 years ago
  • 1.3.1                                ...           11 years ago
  • 1.3.0                                ...           11 years ago
  • 1.2.1                                ...           11 years ago
  • 1.2.0                                ...           11 years ago
  • 1.1.3                                ...           11 years ago
  • 1.1.2                                ...           12 years ago
  • 1.1.1                                ...           12 years ago
  • 1.1.0                                ...           12 years ago
  • 1.0.4                                ...           12 years ago
  • 1.0.3                                ...           12 years ago
  • 1.0.2                                ...           12 years ago
  • 1.0.1                                ...           12 years ago
  • 1.0.0                                ...           12 years ago
  • 0.5.1                                ...           12 years ago
  • 0.5.0                                ...           12 years ago
  • 0.4.0                                ...           12 years ago
  • 0.3.3                                ...           12 years ago
  • 0.3.2                                ...           12 years ago
  • 0.3.1                                ...           12 years ago
  • 0.3.0                                ...           12 years ago
  • 0.2.1                                ...           12 years ago
  • 0.1.1                                ...           12 years ago
  • 0.0.4                                ...           12 years ago
  • 0.0.3                                ...           12 years ago
  • 0.0.2                                ...           12 years ago
  • 0.0.1                                ...           12 years ago
Maintainers (1)
Downloads
Total 112
Today 0
This Week 0
This Month 95
Last Day 1
Last Week 9
Last Month 1
Dependencies (2)
Dev Dependencies (5)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE