3.1.1 • Published 7 years ago
paletty v3.1.1
paletty
Generate a color palette of a fixed size from an image
Installation
Install it globally with the following command:
npm install -g paletty
API
getPalette(pathToImage, size) ⇒ Promise.<Array.<Array.<Number>>>
Generates a color palette from the image at the given path.
Kind: global function
Returns: Promise.<Array.<Array.<Number>>> - Promise of array of RGB colors
Param | Type | Description |
---|---|---|
pathToImage | string | path to image on file system |
size | number | determines the number of colors that will be returned |