1.0.0 • Published 4 years ago

image-average-colour v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

Image Average Colour Travis CI Build Status

Find the average colour of an image.

NPM Badge

Install

npm install image-average-colour

Usage

const imageAverageColour = require("image-average-colour");

(async () => {
    await imageAverageColour("test/image.png")
    //=> { red: 3, green: 3, blue: 3, rgb: 'rgb(3, 3, 3)', hex: '#030303' }
})()

API

imageAverageColour(path)

path

Type: string

The path to the image.