Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@dominate-color-js/core

Dominate-color26MITdeprecated2.1.4TypeScript support: included

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

 npm install @dominate-color-js/core

colors, dominant color, color analysis, color palette, TypeScript, color algorithms, color detection, computer vision, image processing, color spaces

readme

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)