color-space
Collection of color space conversions
Last updated 2 years ago by dy .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install color-space 
SYNC missed versions from official npm registry.

Color-space test stable npm size

Open collection of color spaces.

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>.channel //channel names
<space>.min //channel minimums
<space>.max //channel maximums

Spaces

Purpose

A complete collection of color spaces with minimal consistent and clean API, verified formulas and cases. While alternatives focus on digital color spaces, this project takes broader perspective, including historical / multidisciplinary spaces. A side effect is verifying and correcting papers.

Credits

Thanks to all who contribute to color science – researchers, scientists, color theorists, specifiers, implementors, developers, and users.

Similar

culori, colorjs.io, color-api, texel/color,

🕉

Current Tags

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

65 Versions

  • 3.6.0                                ...           18 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
Downloads
Total 112
Today 1
This Week 9
This Month 95
Last Day 3
Last Week 82
Last Month 1
Dependencies (0)
None
Dev Dependencies (6)
Dependents (1)

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