Adjust shrink factor, angle, and length at any time. Increase coral diversity by changing shrink, angle, length. I like to stop it before it gets too dense.
Simulates a type of fractal coral branching. Builds on my earlier coral project. This one is a forest rather than just two, and is more realistic. Code repeats branching, each time shrinking, randomly varying branching angle deviations, and changing color. Results in a self-similar pattern known as "fractal." Kathy Keane painted the background. Her coral painting and my simulation followed the same kinds simple steps, very much like fractal branching in trees, lungs, and arterial systems. We did another kind of coral with diffusion limited aggregation, which in several ways is more interesting: https://scratch.mit.edu/projects/523455572/