This article walks through the code used to animate a tree fractal.
The only way to learn mathematics is to do mathematics.