rgbcolor

WebJar for rgbcolor

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

rgbcolor
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

rgbcolor
WebJar for rgbcolor
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/yetzt/node-rgbcolor

Download rgbcolor

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

node-rgbcolor

A nodejs module to parse color values Based on rgbcolor.js by Stoyan Stefanov [email protected] http://www.phpied.com/rgb-color-parser-in-javascript/

Usage

var RGBColor = require('rgbcolor');

var color = new RGBColor('darkblue');

if (color.ok) { // 'ok' is true when the parsing was a success
    // log channels
    console.log(color.r + ', ' + color.g + ', ' + color.b);
    // log HEX and RGB
    console.log(color.toHex());
    console.log(color.toRGB());
}

Versions

Version
1.0.1