1.1.0 • Published 7 years ago
colority v1.1.0
Installation
$ yarn add colorityUsage
import colority from 'colority';
colority(imageURL, colors => {
// do something here...
});
// or skip pixels
colority(imageURL, {
skip: 1000,
}, colors => {
// do something here...
});APIs
colority(imageURL[, options], colors => {})imageURL: picture url.options.skip: skip pixels(Optional, default to10).colors: the extractedrgbcolors(Sort by quantity).
License
Licensed under the MIT License