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.