Skip to content

🎨 (~1kb) library to extract colors from pictures.

License

Notifications You must be signed in to change notification settings

dabanlee/colority

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎨

colority

travis dependencies devDependencies

extracting colors from pictures.

Installation

$ yarn add colority

Usage

DEMO

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 to 10).
    • colors: the extracted rgb colors(Sort by quantity).

License

Licensed under the MIT License

About

🎨 (~1kb) library to extract colors from pictures.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published