diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2008-10-23 22:27:01 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-02-21 21:27:01 +0100 |
commit | 82af29d7cb168e353dc1b77a285b1193d59fc45e (patch) | |
tree | 230091335c2ecda17a23290e3aa7246a12fdfa3d | |
parent | Another transparent case cleaned up (diff) | |
download | trianglefractalchaos-master.tar.xz trianglefractalchaos-master.zip |
-rw-r--r-- | README.md | 5 | ||||
-rw-r--r-- | fractal.jpg | bin | 0 -> 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 Binary files differnew file mode 100644 index 0000000..4124c10 --- /dev/null +++ b/fractal.jpg |