Kluster is a visual experiment and technology demo that uses k-means clustering to create a 3D star system using the pixels of an image. You'll have the best luck with Chrome, and clicking the autopilot button once you generate a star system is highly recommended.
For my final in Makematics, I wanted to explore the possibility of using a machine learning system to generate artwork. My view of the whole process was admittedly naive, and I was frustrated by the level of oversight required to both train and get output from something like an SVM. I began looking for methods to have a computer organize data on its own, and became interested in k-means clustering. When I saw some palette generation examples by Mohit Muthanna, I was sold.
Kluster is a browser-based application that can take any user-submitted image and break it into a three dimensional star system—something along the lines of the globular cluster photos from the Hubble that I had seen as a kid. The image pixels are broken into a twelve-color palette using k-means, and then the centroids are distributed in space based on their position in the LAB colorspace. Individual pixels orbit around these centroids, with their distance dictated by their similarity to the centroid color and their size based on their luminosity.
All source code and assets for Kluster are available on GitHub.