generated from mwc/project_drawing
This is program to make a picture of a mountain with trees and snowflakes. Somewhere I got stuck was figuring out how to use a loop to make the trees without it also adding too many steps to the turtle. Eventually I decided that a loop would be less efficient than just writing the code to draw each triangle individually. Something I figured out was how to make the trees equally spaced along the bottom of the mountain. If I had more time, I think I would have liked to create a function that does this so that I can change the size of the mountain and number/size of trees without having to rethink how much space needs to be between each tree. One strategy I used to get unstuck was commenting out everything except what I was currently working on and running the code to see it draw that specific object. Additionally, drawing what I was trying to have the turtle draw in order to figure out the geometry of it. Something I'd like to learn about is how to make it so things are randomly generated. I think that would have helped make the snowfall a little more realistic looking. As far as future projects go, I think it would be cool to learn how to animate it and show the snow falling and then settling on the trees |
||
---|---|---|
.commit_template | ||
drawing.py | ||
poetry.lock | ||
pyproject.toml |