Reducing the number of colors in an image is also called Color quantization. Sliders to change "Select Image" and "Set Color Num" and then clicking the green flat.to start. Warning: long waiting time. You may also run this project at: https://turbowarp.org/735765030?stuck Median Cut algorithm 1. Move all pixels into a single large bucket. 2. Find the color channel (red, green, or blue) in the image with the greatest range. 3. Sort the pixels by that channel values. 4. Find the median and cut the region by that pixel. 5. Repeat the process for both buckets until you have the desired number of colors.
Project Reference: https://muthu.co/reducing-the-number-of-colors-of-an-image-using-median-cut-algorithm/ https://en.wikipedia.org/wiki/Median_cut Sorting: Binary Sort from Zro716's project - https://scratch.mit.edu/projects/26497383/ Thank you Zro716. Image scanning: https://scratch-image-scanner.slmj.repl.co/ from project by MonkeyBean2 : https://scratch.mit.edu/projects/631798903/ Thank you MonkeyBean2.