color-space

WebJar for color-space

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

color-space
Last Version

Last Version

1.16.0
Release Date

Release Date

Type

Type

jar
Description

Description

color-space
WebJar for color-space
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/colorjs/color-space

Download color-space

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/color-space/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>color-space</artifactId>
    <version>1.16.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/color-space/
implementation 'org.webjars.npm:color-space:1.16.0'
// https://jarcasting.com/artifacts/org.webjars.npm/color-space/
implementation ("org.webjars.npm:color-space:1.16.0")
'org.webjars.npm:color-space:jar:1.16.0'
<dependency org="org.webjars.npm" name="color-space" rev="1.16.0">
  <artifact name="color-space" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='color-space', version='1.16.0')
)
libraryDependencies += "org.webjars.npm" % "color-space" % "1.16.0"
[org.webjars.npm/color-space "1.16.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : hsluv jar [0.0.3,0.0.4)
org.webjars.npm : mumath jar [3.3.4,4)

Project Modules

There are no modules declared in this project.

Color-space Build Status stable OpenCollective OpenCollective

Conversions and data for color spaces. Demo.

Usage

npm install color-space

var space = require('color-space');

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

You can require a separate space to reduce size significantly:

var rgb = require('color-space/rgb');
var hsl = require('color-space/hsl');

//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 project is to provide the most complete set of color spaces with maximally minimal uniform API.

Credits

Thanks to all the color scientists, who devoted their lives to color research and delivered their knowledge to us, for now we can trust them and use their formulas and their code.

Backers

Support us with a monthly donation and help us continue our activities. [Become a backer]

Sponsors

Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]

Related

  • colormap — collection of colormaps to map colors of images/data. A replacement for visualising spaces like cubehelix.
  • color-spectrum — convert spectrum to a color.
  • color-interpolate — interpolate between color values.
  • color-tool — color picker based on color-space.

Similar projects

org.webjars.npm

color.js

Color in JavaScript

Versions

Version
1.16.0