reduced code repetition

I am not wondering how i will make the piece move
This commit is contained in:
tsmith37
2025-09-26 14:20:43 -04:00
parent e4e9bf01a8
commit 7ba89f2965
2 changed files with 49 additions and 100 deletions

11
animation_test.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)