Extract prominent colors from an image. Vibrant.js is a javascript port of the awesome Palette class in the Android support library. Showcase API Use of Vibrant is pretty straight forward, but because code works better than explanation, here's an example: var img = document.createElement('img'); img.setAttribute('src', 'examples/octocat.png') img.addEventListener('load', function() { var vibrant =
![Vibrant](https://cdn-ak-scissors.b.st-hatena.com/image/square/9dca7c913d698798103ba966ce1c8fb0a0bb1db7/height=288;version=1;width=512/http%3A%2F%2Fassets.materialup.com%2Fuploads%2F0f3962c2-f406-4f39-bd32-065253aa42f0%2Fvibrant.png)