color-space
Advanced tools
Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "color-space", | ||
"description": "Math & data behind color spaces and color conversions.", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"author": "Deema Ywanow <dfcreative@gmail.com>", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -22,3 +22,3 @@ # color-space [![Build Status](https://travis-ci.org/dfcreative/color-space.svg?branch=master)](https://travis-ci.org/dfcreative/color-space) | ||
To include one target space: | ||
If you aware of size, you can include only needed spaces: | ||
@@ -29,4 +29,4 @@ ```js | ||
//convert rgb to lch | ||
hsl.lch([200,230,100]); | ||
//convert rgb to hsl | ||
rgb.hsl([200,230,100]); | ||
``` | ||
@@ -65,6 +65,7 @@ | ||
* cmyk | ||
* xyz (ciexyz) | ||
* lab (cielab) | ||
* luv (cieluv) | ||
* lch (cielch) | ||
* xyz ([CIE XYZ](http://en.wikipedia.org/wiki/CIE_1931_color_space)) | ||
* lab ([CIE Lab](http://en.wikipedia.org/wiki/Lab_color_space)) | ||
* lch (CIE LCHab — cylindrical LAB) | ||
* luv ([CIE Luv](http://en.wikipedia.org/wiki/CIELUV)) | ||
* lchuv ([CIE LCHuv](http://en.wikipedia.org/wiki/CIELUV#Cylindrical_representation)) | ||
@@ -78,3 +79,3 @@ | ||
Please fork, add space/convertions. If you add a space, make sure you have implemented at least to/from _XYZ_ or to/from _RGB_ conversions. Don’t forget to add a test-case. | ||
Please fork, add color spaces/convertions. If you add a new space, make sure you have implemented at least to/from _XYZ_ or to/from _RGB_ conversion functions. Don’t forget to add a test-case. | ||
@@ -81,0 +82,0 @@ This is meant to be a basic library that can be used by other libraries to wrap color calculations in some cool way. |
226472
82