Fractals

If you’ve been programming for any time at all, I’m sure you’ve come across the subject of fractals. They are used to teach recursive programming techniques,which, I freely admit, mostly confuse me. :-) Well, I understand them, but never quite know when a particular programming problem can be solved using the technique. Oh well, such is life. This is a little project that draws a few.

I particularly like the tree algorithm because it does an excellent job of combining the technique with colors. Credits for the original code I ported are given in the code. The project is not optimized and it takes about five seconds to get everything drawn to the screen, but it’s still a fun exercise. I hope you enjoy it.

Like the other projects here, I am doing my drawing using the DrawLine routine of the Graphics class on my Mac.

Download Project Here …..

About bigdaddytom

Hobbyist programmer, self taught, started with Rb in 1999. Xcode, Objective-C iPhone coder too. I have been blessed being able to live in Hawaii for over three decades. Proud father of two. Business owner. The above image is from atop Mauna Kea looking towards Mauna Loa on the big Island of Hawaii.
This entry was posted in Code. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>