Skip to content

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

License

Notifications You must be signed in to change notification settings

yuzutech/chroma-graalvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published