This image was generated line by line, with each pixel's value determined by a set of rules:
- If the pixel is on the edge, set to the same color as the previous pixel 1 away from the edge
- If the left and right pixels on the previous line are the same, set this pixel to white.
- Otherwise, set to black.
- The first line is randomly generated, with a much higher chance of creating black than white pixels (50:1).
Using these rules, I generated the linked image using a python script. Notice, the image does not devolve into pseudo-randomness (like I expected), but seems to have a sort of pattern -- seemingly resetting after a set amount of lines.
My question:
What causes this behavior? Does there exist theory that can help explain this?
More precisely you build a https://en.wikipedia.org/wiki/Sierpinski_triangle
Sierpinski Triangle !
(p.s. please can you validate my answer ! 8for the badge; as it really seems that I gave the most precise answer!)