aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: d645089bcbc71d03722e2c7a065e771f1447cb4f (plain) (blame)
1
2
3
4
5
# Triangle Fractal Chaos

To learn more about Qt's painting system, I wrote a program that generates the <a href="http://en.wikipedia.org/wiki/Sierpi%C5%84ski_triangle">SierpiƄski triangle</a> using a <a href="http://en.wikipedia.org/wiki/Chaos_game">chaos game</a>. Pick three vertices of a triangle. Plot a point at random inside that triangle. Choose a vertex of the triangle at random and plot the midpoint between the chosen vertex and the previous point plotted. Repeat this ad infinitum and you get:

<img src="fractal.jpg" />