1.0.0 • Published 3 months ago

rc-color v1.0.0

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

rc-color

Grab the color palette from an image using just Javascript in the browser and in Node.js

Installation

npm i rc-color

or

yarn add rc-color

Usage

Get the Dominant Color from an Image

const { getColorFromURL } = require('rc-color');

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

Build a Color Palette from an Image

const { getPaletteFromURL } = require('rc-color');

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

3 months ago