aboutsummaryrefslogtreecommitdiffstats

Triangle Fractal Chaos

To learn more about Qt's painting system, I wrote a program that generates the SierpiƄski triangle using a chaos game. 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: