@bencevans/color-array-average
v1.0.2
Published
Calculate the average color given an array of CSS Hex Colors
Downloads
296
Readme
@bencevans/color-array-average
Calculate the average color given an array of CSS Hex Colors
Install
$ npm install --save @bencevans/color-array-average
Usage
const averageColor = require('@bencevans/color-array-average')
averageColor(['#00f', '#0f0', '#f00']) // => '#555555'
averageColor(['#121212', '#121212']) // => '#121212'
API
averageColor(colors : Array) : String
Returns CSS Hex string.