generated from mwc/lab_turtle
	Experimented with turtle using the extra commands
I originally only used the basic few commands provided, but then discovered the extra commands and did more with my code to use them. Using more of the extra commands made the assignment more fun!
This commit is contained in:
		
							
								
								
									
										37
									
								
								drawing.py
									
									
									
									
									
								
							
							
						
						
									
										37
									
								
								drawing.py
									
									
									
									
									
								
							@@ -5,9 +5,28 @@ from turtle import (
 | 
				
			|||||||
    right,
 | 
					    right,
 | 
				
			||||||
    penup,
 | 
					    penup,
 | 
				
			||||||
    pendown,
 | 
					    pendown,
 | 
				
			||||||
 | 
					    pensize,
 | 
				
			||||||
 | 
					    speed,
 | 
				
			||||||
    color,
 | 
					    color,
 | 
				
			||||||
 | 
					    begin_fill,
 | 
				
			||||||
 | 
					    end_fill,
 | 
				
			||||||
 | 
					    fillcolor,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					penup()
 | 
				
			||||||
 | 
					back(100)
 | 
				
			||||||
 | 
					right(270)
 | 
				
			||||||
 | 
					forward(100)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					right(90)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					pendown()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					begin_fill()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					pensize(5)
 | 
				
			||||||
 | 
					speed(2)
 | 
				
			||||||
color("red")
 | 
					color("red")
 | 
				
			||||||
forward(200)
 | 
					forward(200)
 | 
				
			||||||
right(90)
 | 
					right(90)
 | 
				
			||||||
@@ -19,6 +38,10 @@ forward(200)
 | 
				
			|||||||
right(90)
 | 
					right(90)
 | 
				
			||||||
color("green")
 | 
					color("green")
 | 
				
			||||||
forward(200)
 | 
					forward(200)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					fillcolor("misty rose")
 | 
				
			||||||
 | 
					end_fill()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
right(135)
 | 
					right(135)
 | 
				
			||||||
color("blue")
 | 
					color("blue")
 | 
				
			||||||
forward(282.8)
 | 
					forward(282.8)
 | 
				
			||||||
@@ -29,6 +52,20 @@ right(135)
 | 
				
			|||||||
color("purple")
 | 
					color("purple")
 | 
				
			||||||
forward(282.8)
 | 
					forward(282.8)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					color("black")
 | 
				
			||||||
 | 
					penup()
 | 
				
			||||||
 | 
					forward(30)
 | 
				
			||||||
 | 
					pendown()
 | 
				
			||||||
 | 
					right(135)
 | 
				
			||||||
 | 
					forward(240)
 | 
				
			||||||
 | 
					right(90)
 | 
				
			||||||
 | 
					forward(240)
 | 
				
			||||||
 | 
					right(90)
 | 
				
			||||||
 | 
					forward(240)
 | 
				
			||||||
 | 
					right(90)
 | 
				
			||||||
 | 
					forward(240)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
input()
 | 
					input()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user