Skip to content

fakelbst/color-palettes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

color-palettes

Get color from image

Install

npm install color-palettes

Usage

import colorPalettes from 'color-palettes'

let cp = new colorPalettes('pic.jpg')
cp.getPalettes({
  colorCount: 6
}).then( (result) => {
  console.log(result) // [ [51, 94, 123], [210, 186, 185], ...[114, 192, 174]]
})
import colorPalettes from 'color-palettes'

let cp = new colorPalettes('pic.jpg')
cp.dominantThree({
  format: 'hex'
}).then( (result) => {
  console.log(result) // #
})

Credits

Releases

No releases published

Packages

No packages published