https://github.com/tmcw/fischer-color
eric fischer's perceptually-friendly color system
https://github.com/tmcw/fischer-color
Last synced: 10 months ago
JSON representation
eric fischer's perceptually-friendly color system
- Host: GitHub
- URL: https://github.com/tmcw/fischer-color
- Owner: tmcw
- Created: 2014-09-02T18:37:18.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2019-05-05T22:28:47.000Z (about 7 years ago)
- Last Synced: 2025-09-30T14:59:16.490Z (10 months ago)
- Language: JavaScript
- Homepage:
- Size: 18.6 KB
- Stars: 20
- Watchers: 48
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Fischer Color
[](http://travis-ci.org/tmcw/fischer-color)
[](https://greenkeeper.io/)

A JavaScript implementation of [Eric Fischer](https://github.com/ericfischer)'s
simple and perceptually friendly color interpolation.
## [Example](http://requirebin.com/?gist=236aaf7b579e3ecbf961)
## API
### `interpolate(hue, chroma, luminosity)` (or `interpolate([h, c, l])`)
Input:
* hue in range from 0 to 2 pi
* chroma in range from 0 to 1
* luminosity in range from 0 to 1
Returns:
* an array of `[red, green, blue]`