https://github.com/javierbyte/colorblendjs
Color blends for javascript.
https://github.com/javierbyte/colorblendjs
Last synced: 4 months ago
JSON representation
Color blends for javascript.
- Host: GitHub
- URL: https://github.com/javierbyte/colorblendjs
- Owner: javierbyte
- Created: 2015-04-09T02:01:52.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-02-10T15:50:43.000Z (over 2 years ago)
- Last Synced: 2025-02-06T03:51:18.310Z (5 months ago)
- Language: HTML
- Homepage: http://javierbyte.github.io/colorblendjs/
- Size: 41 KB
- Stars: 36
- Watchers: 8
- 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/)
[](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);