colorspread
v1.0.1
Published
Combine two colors to retrieve combinations.
Downloads
9
Readme
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' ]