Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chroma.js on the JVM using GraalVM!

Travis build status

This project demonstrate how Chroma.js can be embed in a Java application using the GraalVM Polyglot API.

Status
This project is a proof of concept.

Build

  1. Install GraalVM

  2. Install Maven 3.5 or greater

  3. Run the following command:

    $ mvn clean install
Important

Make sure that Maven is using the java binary provided by GraalVM. You can specify the JAVA_HOME environment variable before the mvn command:

$ JAVA_HOME=/path/to/graalvm mvn clean install

Usage

Chroma.create("pink").darken().saturate(2).hex(); // "#ff6d93"
Chroma.create("orange").rgba(); // [255, 165, 0, 1]

About

Chroma.js - a tiny JavaScript library for dealing with colors - on the JVM using GraalVM!

Topics

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages