aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md5
-rw-r--r--fractal.jpgbin0 -> 131814 bytes
2 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..d645089
--- /dev/null
+++ b/README.md
@@ -0,0 +1,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" />
diff --git a/fractal.jpg b/fractal.jpg
new file mode 100644
index 0000000..4124c10
--- /dev/null
+++ b/fractal.jpg
Binary files differ