Programming More Trees in Python! (Recursion & Artwork)

Опубликовано: 20 Март 2026
на канале: Keith Galli
19,723
293

In this video, we code up some more tree animations using python to support the #TeamTrees movement!
Link to donate: https://teamtrees.org/

We start off showing how you can use recursion to make basic tree like structures. We then build on that and use more sophisticated recursive logic to make the trees look pretty realistic.

Next we go through how you can draw paintings in Python. This method works by sampling points in a photograph and drawing brush strokes of the same color in the generated image. It ultimately outputs some pretty cool stuff :).

Check out the first video I made for team trees!
   • Programming Trees in Python! (with the tur...  

Check out Kyle on Instagram for all the awesome nature pictures!
  / k_rowejo  

Thanks for watching everyone!

Thanks @Mark Rober & @MrBeast for all your efforts towards organizing this movement!! :)

---------------------------
Source code (recursive example): https://github.com/KeithGalli/TeamTrees

I haven’t made the source code for the paintings public yet. Think I’ll post it here sometime in the next couple weeks. Feel free to bug me in the comments in case I forget.

---------------------------
Follow me on Twitter:   / keithgalli  
Follow me on Instagram:   / keithgalli  

Join the Python Army to get access to perks!
YouTube -    / @keithgalli  
Patreon -   / keithgalli