generated from mwc/lab_turtle
I felt like a kid having fun. Originally, I was going to try creating the dragon that is the logo from the school I just left, but I realized I didn't have a way to fill in the outline I created. I pivoted to drawing a sun, because the star made me think about angles. I realized as I was drawing the dodecagon that I was thinking about the exterior angles of the polygon instead of the interior angles--this, and having to think about the angles with respect to the orientation of the turtle with right and left, made me make quite a few errors, but I found that I enjoyed fixing it and getting closer to the image I wanted. The whole process reminded me of when I was learning how to use NetLogo for the first time in high school! On a side note, after I was finished, I noticed I repeated certain lines a number of times. It wasn't too bad to write, since I could just copy and paste, but it felt like the right moment to learn how to write a for loop--specifically in Python, since I've done it in other languages before--and I ended up googling how to and replacing the repeated lines with them. Although I knew I could have written for loops in the first place as opposed to changing the code once I had something that worked around with this lab, I personally found it helpful to copy and paste a few times so I could make sure the loop body would actually accomplish what I wanted it to without waiting for the whole loop to actually finish drawing. |
||
---|---|---|
.commit_template | ||
.gitignore | ||
drawing.py | ||
poetry.lock | ||
pyproject.toml |