make the leaves change colors, so I made a new python program file to test out just getting one leaf to change color. I don't think I'm understanding how to get animate to work. I was thinking that if I made a list of colors, I could iterate over the colors in the list for different frames, but I couldn't get that to work. Also, for some reason, I can't use superturtle directly, even though I have it installed. I have been copying the source code into the superturt.py file, but some of the source code isn't available to do that for (the easings). Not sure if that is a factor in not being able to do this though, because I was trying to switch between specific colors, and not move through a spectrum (although that would be cool to do eventually if I can). I was also thinking it would be cool to make the leaves grow when they first appear, and then rotate and fall down at the end, but that would definitely require the easing thing. |
||
---|---|---|
__pycache__ | ||
.commit_template | ||
README.md | ||
changingcolors.py | ||
drawing.py | ||
poetry.lock | ||
pyproject.toml | ||
shapes.py | ||
superturt.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.)