color-id

WebJar for color-id

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

color-id
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

color-id
WebJar for color-id
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download color-id

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : clamp jar [1.0.1,2)

Project Modules

There are no modules declared in this project.

color-id unstable Build Status

Convert color channels to single integer and back. Useful to get an id for a color.

npm install color-id

const colorId = require('color-id');

colorId([.1, .5, .5, .1]); // 0x197f7f19

colorId(channels, normalized=true)

Get id for normalized to 0..1 rgb[a] channel values. Optionally pass normalized flag to indicate that values are normalized to 0..1 range, defaults to true.

colorId.from(number, normalized=true)

Get color channels values from the color id. Optionally pass normalized flag to align values to 0..1 range.

Related

color-interpolate — interpolate color over palette, colormap or gradient.
color-rgba — convert color string to rgba array.
color-alpha — change alpha channel for a color.

org.webjars.npm

color.js

Color in JavaScript

Versions

Version
1.1.0