Generate color schemes programmatically.
What is RainbowJS?
There are several applications that let you pick colors and generate a color palette, RainbowJS let you automate this process by providing you with a programmatic API to create color objects and schemes.
Installation
Bower
$ bower install rainbow-js
Get Started
In rainbow you have two basic constructors, the color constructor and the scheme constructor. Let's start creating a new color object and then create a scheme from that object using the triadric function.
To create a color object is as easy as call the color constructor inside the rainbow napmespace 'R', then we can create an scheme from that object.
script.js
// Create a new color object
let color = new R.Color('rebeccapurple');
// Create a scheme from a color
let scheme = color.createScheme('triadric');
Color theory harmonies
Phasellus eget enim eu lectus faucibus vestibulum. Suspendisse sodales pellentesque elementum.