Vibrant-Colors / node-vibrant

🎨 Extract prominent colors from an image
MIT License
2.01k stars 107 forks source link

How to use applyFilter? #145

Open darknblack opened 5 months ago

darknblack commented 5 months ago

Hi, can you make an example on how to use the applyFilter function?

What I tried so far: applyFilter(() => true);

Error message:

TypeError: filters[j] is not a function
    at Object.applyFilters (C:\Users\ian\work\capture-movement\node_modules\.pnpm\@vibrant+image@3.2.1-alpha.1\node_modules\@vibrant\image\lib\index.js:42:32)

Thanks