@sphinxxxx/color-conversion

WebJar for @sphinxxxx/color-conversion

License

License

ISC
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

sphinxxxx__color-conversion
Last Version

Last Version

2.2.2
Release Date

Release Date

Type

Type

jar
Description

Description

@sphinxxxx/color-conversion
WebJar for @sphinxxxx/color-conversion
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/Sphinxxxx/color-conversion

Download sphinxxxx__color-conversion

How to add to project

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

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.

color-conversion

JavaScript library for color conversion and manipulation with support for CSS color syntax.

Demo: https://rawgit.com/Sphinxxxx/color-conversion/master/demo/index.html

Usage

<script src="https://unpkg.com/@sphinxxxx/color-conversion@2"></script>

<script>
    //rgba/hsla/hex string, CSS color name, or rgba array:
    var color = new Color('rgb(200, 250, 0)');
    
    color.hsla;  // [0.2, 1, 0.49, 1]
    color.rgba;  // [200, 250, 0, 1]
    
    color.hslaString;  // "hsla(72,100%,49.02%,1)"
    color.rgbaString;  // "rgba(200,250,0,1)"
    color.hex;         // "#c8fa00ff"
</script>

Versions

Version
2.2.2
2.1.1