Press space to choose the number of colors (wait until the project is done or stop it first though). More colors = more lag. USE THIS ==> https://sulfurous.aau.at/#198250967 TURN ON TURBO MODE + FULLSCREEN. Here's the NPR Guy version: https://sulfurous.aau.at/#199138767
This is honestly one of my proudest and coolest projects. I'd say it's up there with Splitting Circles into an Image and Rolling on Slopes. :) HOW IT WORKS: This first gets a list of each unique color in the picture (that part is already done so that this project isn't terribly laggy). Then, each new image is an iteration of the k-means clustering algorithm, with each pixel in a cluster being set to that cluster's average color. The first image is terrible since the cluster centers are picked at random, but each one becomes slightly better. It's practically machine learning using a picture and some math! See this project for more info: https://scratch.mit.edu/projects/199028733/