Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/javierbyte/colorblendjs
- Owner: javierbyte
- Created: 2015-04-09T02:01:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-02-10T15:50:43.000Z (over 1 year ago)
- Last Synced: 2024-06-28T10:32:43.910Z (3 months ago)
- Language: HTML
- Homepage: http://javierbyte.github.io/colorblendjs/
- Size: 41 KB
- Stars: 35
- Watchers: 9
- Forks: 15
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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);