Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 983 Bytes

README.adoc

File metadata and controls

35 lines (24 loc) · 983 Bytes

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]