I chnaged my entire code to add superturle animation.

I couldn't draw the windows to my skyscrapers so, i though of using superturtle animation.However, I'm having trouble installing superturle.
I did text my professor using discord about this issue. I have a feeling that I might have to change my intial project idea to something simple.
This commit is contained in:
juddin2
2025-09-20 19:36:31 -04:00
parent 9146aa3d12
commit f59b343487
2 changed files with 39 additions and 19 deletions

11
animation.py Normal file
View File

@@ -0,0 +1,11 @@
from superturtle.animation import animate
from turtle import forward, right
def square(side_length):
for side in range(4):
forward(side_length)
right(90)
for frame in animate(40, loop=True):
size = frame.interpolate(50, 100, mirror=True)
square(size)