Skip to main content

Justin Pinkney

Colour Sorter ๐ŸŒˆ

Takes a picture and rearranges the pixels to make another.

A little generative art Java application I made a long time ago which implements an algorithm to take all the pixels from an image and use them to make a new image, based on a (sort of) sorting algorithm.

This was all inspired by Jรณzsef Fejes's all RGB sorting work. I implemented his basic concept for pixel colour sorting, but using an image as the source of pixels and added lots of options for sort order, distance metrics, and starting patterns. The combination of options as well as the sheer variety of possible starting material (i.e. any image or photograph) produces a huge variety of results which is very fun to curate.

You can find the source code on GitHub.

Examples #