🎨
extracting colors from pictures.
$ yarn add colority
import colority from 'colority';
colority(imageURL, colors => {
// do something here...
});
// or skip pixels
colority(imageURL, {
skip: 1000,
}, colors => {
// do something here...
});
colority(imageURL[, options], colors => {})
imageURL
: picture url.options.skip
: skip pixels(Optional, default to10
).colors
: the extractedrgb
colors(Sort by quantity).
Licensed under the MIT License