I made a draw_leaf function and put it into a shapes.py because I think the leaf is pretty good. I started trying to draw the trunk / branches / roots of the tree, but it's not finished so I didn't put it into shapes.py yet. It was easy to make the leaf, I used two 90 degree arcs and a straight line between them equal to the chord length. I was trying to make branches with more branches coming off of them, but it was difficult to make the branches repeat the way I wanted to, so I am now just trying some basic rods for the main branches, and then once I figure out the loops for that I will figure out how to do loops to make little branches off of the main branches. |
||
---|---|---|
__pycache__ | ||
.commit_template | ||
README.md | ||
drawing.py | ||
poetry.lock | ||
pyproject.toml | ||
shapes.py |
README.md
(Drawing project)
( This is the README file for your drawing project. Replace all the text in parentheses with your own text. It's written in a simple language called Markdown, which allows basic formatting. )
Description
(Describe your goal for this project. If you want to link to an image, move the image to this directory, and then use the following syntax:
For this project, I want to make an animated tree with the leaves changing color and falling down.
---I am adding this line so it lets me do a commit message.---
)
Planning
(Include your planning here, including your project milestone.
To complete this project goal, I will first draw a base for the tree, made up of a trunk and branches. To simplify this, I will write a function which draws a branch, and call it to make many branches of different sizes and positions.
I will write a function for drawing a leaf, which will change color based on the time.
Lastly, I will write a function for the leaves to fall from the branches to the ground.
My milestone will be having the static image complete.)