mirror of
https://github.com/janishutz/color-thief.git
synced 2025-11-25 05:44:24 +00:00
01fe8263b9823c1f2771c9e060050a9b8e976c1d
Color Thief
Grab the color palette from an image using just Javascript.Works in the browser and in Node.
🌈 View the demo page for examples, API docs, and more.
Contributing
Running tests
Run Cypress integration tests in Chrome browser.
npm run devto start local server.npm run test
Adding tests
- Update
cypress/test-pages/index.htmlas needed or create a new test page if you need new examples. - Add new tests in
cypress/integration/apis_spec.js
Making a new release
- Merge
devintomaster - Pull down
master - Update version number in
src/color-thief.jsandpackage.json - Run
npm run build - Commit and push built files back up to
master - Create a new Github release along with tag. Naming convention for both
v2.8.1 npm publish
Description
Extract colors from an image in Node.js and browser. Mirror of my fork from https://github.com/janishutz/color-thief
Languages
TypeScript
43.1%
JavaScript
36.2%
HTML
16.6%
CSS
4.1%