1.0.0 • Published 5 years ago

fischer-color v1.0.0

Weekly downloads
2
License
ISC
Repository
-
Last release
5 years ago

Fischer Color

build status Greenkeeper badge

npm.io

A JavaScript implementation of Eric Fischer's simple and perceptually friendly color interpolation.

Example

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]