Programming More Trees in Python! (Recursion & Artwork) @KeithGalli
Programming More Trees in Python! (Recursion & Artwork)  @KeithGalli
Uploaded December 2019 | Updated November 2026, 3 hours ago
In this video, we code up some more tree animations using python to support the #TeamTrees movement!
Link to donate: 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!
youtu.be/WG42fyCMsD0

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

Thanks for watching everyone!

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

---------------------------
Source code (recursive example): 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: twitter.com/keithgalli
Follow me on Instagram: instagram.com/keithgalli

Join the Python Army to get access to perks!
YouTube - youtube.com/channel/UCq6XkhO5SZ66N04IcPbqNcw/join
Patreon - patreon.com/keithgalli
Programming More Trees in Python! (Recursion & Artwork)Pre-Flop Probabilities, Tips, & Tricks - How to win at PokerProgramming Trees in Python! (with the turtle graphics library)For Loops & While Loops in Python - Beginner Python Tutorial #5 (with Exercises)Quickest Ways to Win at Connect 4!Math & Variables in Python - Beginner Python Tutorial #1How to Prepare for a Programming Interview! (Tips & Tricks)Ask me anything! (data science, LLMs, landing a job, and more)The Best Strategy to Win at Connect 4! (Odd Even Strategy)5 Jupyter Notebook Tips & Tricks to Improve your Data Science Workflow!Lists & Tuples in Python - Beginner Python Tutorial #4Introduction to Neural Networks in Python (what you need to know) | Tensorflow/Keras
Keith Galli |

Programming More Trees in Python! (Recursion & Artwork)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER