On the bottom left is the image with the intervals filled in with random colors – each color represents a different interval.Notice that the foam – too light – and the shadows – too dark – are outside the threshold. The top right is the image with pixels outside the lightness threshold replaced with black, and the rest filled in with white.The intervals are defined by regions of the image that are too light or too dark – the edges of these regions define the edges of the intervals.
#Find pixel sorter code
Kim Asendorf’s code simply applies this technique twice: first vertically, then horizontally. The pixels in each interval are rearranged so as to sort them with respect to some property, say, lightness.
Pixel Sorting Introducing order in a disordered way can make for some great glitch art.