2.1.4 • Published 11 months ago
@dominate-color-js/core v2.1.4
Installation
npm install @dominate-color-js/core
yarn add @dominate-color-js/core
pnpm add @dominate-color-js/core
Usage
import { colorDetection , toHex } from '@dominate-color-js/core'
const url = 'https://i.imgur.com/zgz4G0w_d.webp?maxwidth=760&fidelity=grand'
// we get an array of colors in the hex color space
const colors = colorDetection(url).then(toHex)