1.0.0 • Published 7 months ago

@delirius/color-thief-node v1.0.0

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

Color Thief Node

Test

npm run test

or

yarn test

Installation

npm i @delirius/color-thief-node

or

yarn add @delirius/color-thief-node

Usage

Get the Dominant Color from an Image

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

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

Build a Color Palette from an Image

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

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

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