Pixel Smearing
1. Group pixels in non-overlapping vertical and horizontal strips containing g members. Vertical/Horizontal orientation is selected randomly when there’s no danger of overlap.
2. Randomly select each strip of pixels and extrude (smear) it infinitely in a randomly selected direction that is perpendicular to the group’s orientation.
3. Inject an accent color based on a given probability. p
4. Only prime numbers are used for variables g and p.
—-
A labor of love that took a long time. I rewrote the code from scratch 3 times before I got it correct. I’ve been intrigued by this photo ever since I took it. I was also inspired by the smearing of paint I see in a lot of abstract art. The algorithm coincidentally provides a very interesting reinterpretation of the subject matter. Changing the group size (g) reinterprets the image at different scales.
Code is here



