rainbow

rainbow

JavaScript color library to create color schemes based on color theory harmonies.

Get Started

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.

File Icons

Work in the browser and node.

You can use RainbowJS either in the browser or node.

Rainbow is open source.

Hosted on github

rainbow is an open source poroject hosted on github. And is released under the MIT license.

Collaborate

Reporting issues or requesting features

Please create a new issue on the github page.