1
2
3 var vibrant = new Vibrant("https://api.deezer.com/album/97504/image");
4 var swatches = vibrant.swatches()
5 for (var swatch in swatches)
6 if (swatches.hasOwnProperty(swatch) && swatches[swatch])
7 console.log(swatch, swatches[swatch].getHex())
8
9 /*
10 * Results into:
11 * Vibrant #7a4426
12 * Muted #7b9eae
13 * DarkVibrant #348945
14 * DarkMuted #141414
15 * LightVibrant #f3ccb4
16 */
17
18