Use iteration with arrays: - Have an array of branches. Each branch stores: start point, length, and angle. - At iteration 0: fill array with trunks. - At iteration 1: generate child branches into a new array. - Repeat until max depth.
Use iteration with arrays: