Socket
Socket
Sign inDemoInstall

color-space

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

color-space - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "color-space",
"description": "Math & data behind color spaces and color conversions.",
"version": "1.0.0",
"version": "1.0.1",
"author": "Deema Yvanow <dfcreative@gmail.com>",

@@ -6,0 +6,0 @@ "repository": {

@@ -5,6 +5,6 @@ # Color-space [![Build Status](https://travis-ci.org/dfcreative/color-space.svg?branch=master)](https://travis-ci.org/dfcreative/color-space)

Math and data behind color spaces and color conversions. _Color-space_ provides a uniform interface to the all well known color spaces: RGB, HSl, HSV (HSB), [HWB](http://dev.w3.org/csswg/css-color/#the-hwb-notation), CMYK, CMY, [XYZ](http://en.wikipedia.org/wiki/CIE_1931_color_space), XYY (YXY), [LAB](http://en.wikipedia.org/wiki/Lab_color_space), LCH<sub>ab</sub>, [LUV](http://en.wikipedia.org/wiki/CIELUV), [LCH<sub>uv</sub>](http://en.wikipedia.org/wiki/CIELUV#Cylindrical_representation), [H<sub>u</sub>SL](http://www.boronine.com/husl/), [H<sub>u</sub>SL<sub>p</sub>](http://www.boronine.com/husl/), [LAB<sub>Hunter</sub>](http://en.wikipedia.org/wiki/Lab_color_space#Hunter_Lab), [LMS](http://en.wikipedia.org/wiki/LMS_color_space).
Math and data behind color spaces and color conversions. _Color-space_ provides a uniform interface to all well known color spaces: RGB, HSl, HSV (HSB), [HWB](http://dev.w3.org/csswg/css-color/#the-hwb-notation), CMYK, CMY, [XYZ](http://en.wikipedia.org/wiki/CIE_1931_color_space), XYY (YXY), [LAB](http://en.wikipedia.org/wiki/Lab_color_space), LCH<sub>ab</sub>, [LUV](http://en.wikipedia.org/wiki/CIELUV), [LCH<sub>uv</sub>](http://en.wikipedia.org/wiki/CIELUV#Cylindrical_representation), [H<sub>u</sub>SL](http://www.boronine.com/husl/), [H<sub>u</sub>SL<sub>p</sub>](http://www.boronine.com/husl/), [LAB<sub>Hunter</sub>](http://en.wikipedia.org/wiki/Lab_color_space#Hunter_Lab), [LMS](http://en.wikipedia.org/wiki/LMS_color_space).
#### [Converter demo](https://cdn.rawgit.com/dfcreative/color-space/master/test/index.html)
#### [Converter demo](https://cdn.rawgit.com/dfcreative/color-space/master/test/index.html).

@@ -17,3 +17,3 @@

Drop the script `color-space.js` and use a global object `colorSpace`:
Drop `color-space.js` script and use global object `colorSpace`:

@@ -42,10 +42,10 @@ ```html

```js
var spaces = require('color-space');
var colorSpace = require('color-space');
//convert lab to lch
spaces.lab.lch([80,50,60]);
colorSpace.lab.lch([80,50,60]);
```
Include only needed spaces (e.g. to shrink final size):
Include only needed spaces (to get a subset or to shrink final size):

@@ -68,3 +68,3 @@ ```js

spaces[fromSpace][toSpace](array);
colorSpace[fromSpace][toSpace](array);
```

@@ -81,2 +81,3 @@

xyz.whitepoint //list of whitepoint references
lms.transform //list of transform matrices
```

@@ -87,5 +88,5 @@

Please fork, add color space & basic conversions (to/from XYZ or RGB), tests. _Color-space_ is supposed to be a basic library to work with color conversions, an extended replacement for [color-convert](https://github.com/harthur/color-convert).
Please fork, add color space with basic conversions (to/from XYZ or RGB), tests. _Color-space_ is supposed to be a basic library to work with color conversions, an enhanced replacement for [color-convert](https://github.com/harthur/color-convert).
<a href="http://unlicense.org/UNLICENSE"><img src="http://upload.wikimedia.org/wikipedia/commons/6/62/PD-icon.svg" width="40"/></a>
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc