generated from mwc/project_drawing
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			286 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			286 B
		
	
	
	
		
			Python
		
	
	
	
	
	
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)
 | 
						|
 | 
						|
     |