I wanted to title this article “a novel method for matrix randomization using polygons and custom differential post-processing blending“… but that was a bit long, even for me.
Why such a complex title?
It all started with a strange idea I had today. I was thinking of common ways to randomize image data (don’t ask why), and it struck me that the most common randomization method – varying RGB data of single pixels – is not the most interesting way to go about it. Why not use lines, triangles, or other polygons to randomize an image? How would that look?
To test my theory, I wrote a quick program that selects two random pixels in an image, averages their colors, then draws a line of that averaged color between the two points. When repeated over and over again, such an algorithm leads to some interesting effects…
Kinda cool. I’m not sure what to call this effect… although it looks “furry” to me. Should we invent a new word – furrification?
Once I had lines working, my next curiosity involved polygons. Here’s the same picture, but with triangle randomization:
This is also a cool effect, especially when you watch it in action. (The program refreshes the screen every 100 iterations.)
While I didn’t go to the trouble of implementing additional polygons, the code is primed and ready for it. In fact, it would be trivial to draw polygons of any segment count.
Once I had my newly randomized images, I decided to pop into GIMP and do a bit of post-processing. It was then that I realized this could be used to create pretty sweet stained glass images:
It’s trivial to create an image like this – simply open up your base image, then add a triangle randomized copy over the top as a new layer. Set the layer mode to “difference” and bam: stained glass!
Other blending modes provide interesting effects – for example, multiply:
Anyway, I thought this was an interesting exploration in using a randomized copy of an image as an overlay.
This site - and its many free downloads - are funded by donations from visitors like you.
Please consider a small donation to fund server costs and to help me support my family.
Even $1.00 helps. Thank you!