image-average-colour
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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.

Package Sidebar

Install

npm i image-average-colour

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

4.05 kB

Total Files

6

Last publish

Collaborators

  • richienb