Jonathan. Frech’s WebBlog

Sierpiński triangle (#47)

Jonathan Frech

Having recently heard some­thing about chaos theory, I was interested in the Sierpiński triangle. Specifically in the ran­dom generation. To prove that it can really be gen­er­ated using a die, I wrote this program.

How it works

Controls

Source code: sierpinski-triangle.py


[1][2020-07-08] This post in particular was slightly edited to better reflect current standards. A note one may add is that “eventually” should really say “in the limit”, as no fi­nite amount of time will lead to the true fractal using the described methodology.