ScratchData LogoScratchData
Back to Java_Programmer's profile

Color Quantization NPR

JAJava_Programmer•Created January 17, 2018
Color Quantization NPR
69
44
518 views
View on Scratch

Instructions

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

Description

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/

Project Details

Project ID198250967
CreatedJanuary 17, 2018
Last ModifiedNovember 2, 2021
SharedJanuary 20, 2018
Visibilityvisible
CommentsAllowed