View Code? Open in Web Editor
NEW
Chroma.js - a tiny JavaScript library for dealing with colors - on the JVM using GraalVM!
License: MIT License
chroma-graalvm's Introduction
Chroma.js on the JVM using GraalVM!
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.
|
-
Install GraalVM
-
Install Maven 3.5 or greater
-
Run the following command:
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
|
Chroma.create("pink").darken().saturate(2).hex(); // "#ff6d93"
Chroma.create("orange").rgba(); // [255, 165, 0, 1]
chroma-graalvm's People
Contributors