jsyg-color
v1.0.0
Published
Colors constructor for JSYG framework or standalone
Downloads
875
Maintainers
Readme
Color
Constructeur de couleurs.
Installation
npm install jsyg-color
Usage
es6 modules (babel+webpack)
import Color from "jsyg-color"
²
var div = document.getElementById("#myElmt");
var color = new Color("violet");
div.style.color = color.complementary().lighten(2).toString();
without bundler
<script src="node_modules/jsyg-color/JSYG.Color.js"></script>
<script>
var div = document.getElementById("#myElmt");
var color = new Color("violet");
div.style.color = color.complementary().lighten(2).toString();
</script>