Our great sponsors
-
Colorfy
Finds a suitable background color to the artwork of the current Spotify playback and sets it to a LED-strip using a Raspberry Pi
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
As I already have seen in the comments, someone linked my GitHub repo https://github.com/davidkrantz/Colorfy where I gave this a go. In short, it analyzes the album artwork and computes a suitable background color, which was more or less the same as Spotify set in about 80 % of the cases at the time. The program uses k-means clustering to find k distinct colors in the artwork and then computes a colorfulness index as defined by Hasler and Süsstrunk (2003) https://infoscience.epfl.ch/record/33994/files/HaslerS03.pdf for each of the colors. The color with the highest index is then set to be the optimal background color.
Have a look at react-palette
Related posts
- Are there any existing apps to get the main color of your currently playing spotify album and set your lights to that color?
- Analyzing Spotify Stream History
- Color-Names: All the 18k color names from the color-name-list API
- Dark Mode with Next.js, TypeScript, Styled Components and Redux Toolkit🔯🔮
- Milyen pet projektjeitek vannak?