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

preview_player
Показать описание

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!!

Python Turtle Graphics Library Tutorial:

Turtle graphics documentation:

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!

----------------------------

Join the Python Army to get access to perks!
Рекомендации по теме
Комментарии
Автор

Thanks for watching guys! I announce a little contest at the end of the video, so be sure to check that out :)
Also posting a part 2 in a few days… It will cover the branching tree that pops up during the intro

KeithGalli
Автор

A tree in my eyes is just a rectangle with three triangles on top.

- Keith Galli, 2019.

abhishek_raj
Автор

had so much fun changing the world with you !!

realneosi
Автор

We had a beautiful bat swarm here at our garden

Автор

Nice initiative Mate! Please increase the frequency if your videos... it will help to Grow your Channel and our Brain as well..
keep up the good work!☺️

mohitjain
Автор

how much time did you invested to get to this level where you are now?

ashishjoshi
Автор

Keith Bro Can You Help Me?
Its Showing That 'width' is not Defined?

aayushtechbuddy
Автор

I am here for data tree but ended up drawing tree

iluvpwny
Автор

I didn't get a feature in this what the heck

kylieying
Автор

You defined variables before you even started this video.. Not helpful. didn't show the whole process

antwonwalls