1.0.2 • Published 7 months ago

@darlyn1234/color-thief-node v1.0.2

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

Color Thief Node

Test

npm run test

or

yarn test

Installation

npm i @darlyn1234/color-thief-node

or

yarn add @darlyn1234/color-thief-node

Usage

Get the Dominant Color from an Image

const { getColorFromURL } = require('@darlyn1234/color-thief-node');

(async () => {
    const dominantColor = await getColorFromURL(imageURL);
})();

Build a Color Palette from an Image

const { getPaletteFromURL } = require('@darlyn1234/color-thief-node');

(async () => {
    const colorPallete = await getPaletteFromURL(imageURL);
})();

You can also check out test/index.test.js for more detailed example.

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago