Closed prashant-andani closed 5 years ago
If you need help using Color Thief, please post on Stack Overflow to get the most eyes on your problem. When you do post, make sure to include information more details on your usage such as Node version. Read more about support requests on the help page: https://lokeshdhakar.com/projects/color-thief/#help
Here is the code I'm trying out...
`import ColorThief from "colorthief";
ColorThief.getColor(document.querySelector("img")) .then(color => { console.log(color); }) .catch(err => { console.log(err);
});