Programming Trees in Python! (with the turtle graphics library)

Опубликовано: 11 Декабрь 2019
на канале: Keith Galli
16,374
364

Link to donate: https://teamtrees.org/
Source code: https://github.com/KeithGalli/TeamTrees

In this video, we code up some cool tree animations using the python turtle library to support the #TeamTrees movement! :)

We start off with some basics defining a few different functions to build up to a draw_tree function. Then we look at how you can clean up that base code using a Tree Class. Finally, we take our simple tree and replicate it many times to create some cool artwork.

I'm going to post a part 2 in a couple days where I walk through using recursion to draw some more trees.

Watch Part 2!!
   • Programming More Trees in Python! (Re...  

Python Turtle Graphics Library Tutorial:
   • Complete Python Turtle Graphics Overv...  

Turtle graphics documentation:
https://docs.python.org/3.3/library/t...

Thanks for watching everyone!

Thanks ‪@MarkRober‬ & ‪@MrBeast‬ for all your efforts towards organizing this movement!! :)

----------------------------
While I was working on this video, I stumbled into some other Coding YouTubers who made cool videos for TeamTrees. If you're looking for similar content, check out!

@The Coding Train :    • Algorithmic Botany  
@John Fish :    • I Coded 20,000,000 Trees for #TeamTrees  

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

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