chartjs-color-string

WebJar for chartjs-color-string

License

License

MIT
Categories

Categories

JavaScript Languages
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

chartjs-color-string
Last Version

Last Version

0.6.0
Release Date

Release Date

Type

Type

jar
Description

Description

chartjs-color-string
WebJar for chartjs-color-string
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/chartjs/chartjs-color-string

Download chartjs-color-string

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : color-name jar [1.0.0,2)

Project Modules

There are no modules declared in this project.

chartjs-color-string

npm Travis

library for parsing and generating CSS color strings.

Install

With npm:

$ npm install color-string

Usage

Parsing

colorString.getRgb("blue")                       // [0, 0, 255]
colorString.getRgb("#FFF")                       // [255, 255, 255]
colorString.getRgba("#FFFA")                     //[255, 255, 255, 0.67]}
colorString.getRgba("#FFFFFFAA")                 // [255, 255, 255, 0.67]}

colorString.getRgba("rgba(200, 60, 60, 0.3)")    // [200, 60, 60, 0.3]
colorString.getRgba("rgb(200, 200, 200)")        // [200, 200, 200, 1]

colorString.getHsl("hsl(360, 100%, 50%)")        // [360, 100, 50]
colorString.getHsla("hsla(360, 60%, 50%, 0.4)")  // [360, 60, 50, 0.4]

colorString.getAlpha("rgba(200, 0, 12, 0.6)")    // 0.6

Generation

colorString.hexString([255, 255, 255])   // "#FFFFFF"
colorString.hexString([0, 0, 255, 0.4])    // "#0000FF66"
colorString.hexString([0, 0, 255], 0.4)    // "#0000FF66"
colorString.rgbString([255, 255, 255])   // "rgb(255, 255, 255)"
colorString.rgbString([0, 0, 255, 0.4])  // "rgba(0, 0, 255, 0.4)"
colorString.rgbString([0, 0, 255], 0.4)  // "rgba(0, 0, 255, 0.4)"
colorString.percentString([0, 0, 255])   // "rgb(0%, 0%, 100%)"
colorString.keyword([255, 255, 0])       // "yellow"
colorString.hslString([360, 100, 100])   // "hsl(360, 100%, 100%)"
org.webjars.npm

Chart.js

Simple, clean and engaging charts for designers and developers

Versions

Version
0.6.0
0.5.0
0.4.0