generated from mwc/lab_turtle
	I started by changing the angles of the right turns to 90 degrees turns becuase at first glace without reading the math, thats what i assumed the code would do, not 144 degree turns lol. I thought this would make a stair case, i was wrong, a bunch of right turns makes a square lol. I then changed it to be left right left right alternating to create the staircase i wanted.
I felt a little silly at some points like "oh yeah 4 rights do make a circle", but i also felt cool being able to make the picture i sought after. I tried to do two pictures in one drawing and i failed, so i think i would be inetertsed in see if/how we could do that, but as it wasnt part of the assignment today, i just decided to put that question on the back burner.
This commit is contained in:
		
							
								
								
									
										10
									
								
								drawing.py
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								drawing.py
									
									
									
									
									
								
							@@ -9,14 +9,14 @@ from turtle import (
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
forward(100)
 | 
			
		||||
right(360 * 2 / 5)
 | 
			
		||||
left(360 * 1 / 4)
 | 
			
		||||
forward(100)
 | 
			
		||||
right(360 * 2 / 5)
 | 
			
		||||
right(360 * 1 / 4)
 | 
			
		||||
forward(100)
 | 
			
		||||
right(360 * 2 / 5)
 | 
			
		||||
left(360 * 1 / 4)
 | 
			
		||||
forward(100)
 | 
			
		||||
right(360 * 2 / 5)
 | 
			
		||||
right(360 * 1 / 4)
 | 
			
		||||
forward(100)
 | 
			
		||||
right(360 * 2 / 5)
 | 
			
		||||
left(360 * 1 / 4)
 | 
			
		||||
 | 
			
		||||
input()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user