1.0.2 • Published 7 months ago

avg-color v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Avg Color

A library for calculating the average color of an image.

Installation

npm install avg-color

Usage

Web Usage

For use in a web application:

import { avc } from 'avg-color';

const imagePath = 'path/to/your/image.jpg';

avc(imagePath)
  .then((color) => {
    console.log('Average color:', color);
  })
  .catch((error) => {
    console.error('Error:', error);
  });

License

This project is licensed under the MIT License. Details can be found in the LICENSE file.

1.0.2

7 months ago

1.0.1

8 months ago

1.0.0

8 months ago