Write once, use everywhere
The real power of functions is reuse. Instead of copying the same shapes over and over, write a helper once and call it many times — each call with different inputs. Less code, fewer mistakes, and changes only need to happen in one place.
Below, a single drawTree(x) helper draws a trunk and leaves at a given x. Calling it a few times plants a whole row of trees:
Spot the repetition
Whenever you find yourself copying and pasting the same shapes with small tweaks, that's a sign to make a function.