1.0.0 • Published 4 years ago
image-average-colour v1.0.0
Image Average Colour
Find the average colour of an image.
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.
1.0.0
4 years ago