1.0.1 • Published 5 years ago

colorspread v1.0.1

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

Input two colors (hex or RGB) and the required number of points between the two colors.

Installation/usage

Using npm:

$ npm i colorspread

Load ES module:

import ColorSpread from `colorspread`;

Example

let myColor = ColorSpread('#0022ff', '245, 255, 30', 3)
// output: [ '#00FF22', '#3DFF21', '#7BFF20', '#B8FF1F', '#F5FF1E' ]