Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/javierbyte/colorblendjs

Color blends for javascript.
https://github.com/javierbyte/colorblendjs

Last synced: about 1 month ago
JSON representation

Color blends for javascript.

Awesome Lists containing this project

README

        

# [ColorBlendjs](http://javierbyte.github.io/colorblendjs/)

Javascript utility for blending colors.

[Live demo](http://javierbyte.github.io/colorblendjs/)

[![colorblendjs](screenshot.jpg)](http://javierbyte.github.io/colorblendjs/)

## Installation

npm install colorblendjs --save

## Usage

Require the file:

var colorblend = require('colorblendjs');

Use it!

// currently a color must be a `rgb` array like [160, 179, 197];
// intensity goes from 0 to 1
var resultColor = colorBlend.overlay(firstColor, secondColor, intensity);