Tag Archives: draw trees

Draw a colored binary tree in C#

This example shows how you can modify the example Recursively draw a binary tree in C# to draw a colored binary tree. It draws branches at different depths in different colors and with different thicknesses. The main recursive method in … Continue reading

Posted in algorithms, drawing, fractals, graphics | Tagged , , , , , , , , , , , , , , , , | 1 Comment

Recursively draw a binary tree in C#

This example shows how you can use recursion to draw a binary tree. Recursion occurs when a method calls itself. It may call itself directly (simple recursion) or indirectly by calling another method that calls the first (indirect recursion). It … Continue reading

Posted in algorithms, drawing, fractals, graphics | Tagged , , , , , , , , , , , , , , | 10 Comments