Today Simon showed me what he learned about pixel sorting in Processing (Java) by doing this coding challenge by Daniel Shiffman. Using a “selection sort” algorithm, he sorted the pixels of a sunflower image by brightness and hue. The results were amazing, it had this impressionistic effect, like a Van Gogh painting. Maybe Van Gogh also sorted pixels?
Here the pixels are sorted at random in black and white:
Here Simon added max RGB values:
Here the pixels are cloned from the image on the left:
The same, but in an easier way, by using the img.get() function:
Pixels sorted by brightness:
Pixels sorted by hue:
Beautiful, isn’t it?