My 1st attempt to simulate lung bronchi, during breathing. Lungs are fractal, meaning the structure is self-similar across large and small scales. Lots of guestimations.
Code repeats branching, each time shrinking length, creating a self-similar pattern known as "fractal." Used sine function to oscillate angle then redrew bronchi for every new angle (turned out to require some workarounds in Scratch making code less pretty and concise). Note similarity of fractal branching in lungs, trees, and arterial systems. Discussion of fractal branching: https://lifepatternsemerging.com/fractal-patterns/