generated from mwc/project_drawing
	Submit 4:
I made the wings and body line up correctly to make a butterfly. This took a lot of trial and error. Getting the starting coordinates and angels for each wing was very time consusming, but with each edit, it got better and better! I also sped up the turtle because it was so slow when I was continoussly trying to see the new drawing. I was able to use 'command ?' to help me do one wing at a time! Somewhere i got stuck was just understadning the coordinates or angles. To help with that, I looked up the corrodinate grid to help me better select the starting point.
This commit is contained in:
		@@ -12,9 +12,13 @@ I will be making a butterfly fluttering its wings. The view will be from the fro
 | 
				
			|||||||
(Include your planning here, including your project milestone.)
 | 
					(Include your planning here, including your project milestone.)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Milestone 1
 | 
					### Milestone 1
 | 
				
			||||||
Create function for the most used shapes in the project. This will include an oval, rectangle and triangle function. I will also have a fly fucntion that will help when i begin drawing.
 | 
					Create function for the most used shapes in the project. This will include an oval and wing function that uses the ovals.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Milestone 2
 | 
					### Milestone 2
 | 
				
			||||||
Create background. I want to have a solid color background. 
 | 
					Create a function that actually draw the body of the butterfly using the other functions I wrote prior.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Milestone 3
 | 
					### Milestone 3
 | 
				
			||||||
 | 
					Create a function that draws the wings of the butterfly using the other functions.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### Milestone 4
 | 
				
			||||||
 | 
					Change the bakground color.
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										24
									
								
								drawing.py
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								drawing.py
									
									
									
									
									
								
							@@ -12,7 +12,8 @@ from superturtle.movement import fly, no_delay
 | 
				
			|||||||
import turtle
 | 
					import turtle
 | 
				
			||||||
 | 
					
 | 
				
			||||||
screen = turtle.Screen()
 | 
					screen = turtle.Screen()
 | 
				
			||||||
screen.bgcolor("cadetblue")
 | 
					screen.bgcolor("lightblue")
 | 
				
			||||||
 | 
					turtle.speed(10)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def draw_oval(width, height, color):
 | 
					def draw_oval(width, height, color):
 | 
				
			||||||
    fillcolor(color)
 | 
					    fillcolor(color)
 | 
				
			||||||
@@ -32,21 +33,22 @@ def draw_wing(x, y, width, height, color, angle):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
def draw_body():
 | 
					def draw_body():
 | 
				
			||||||
    penup()
 | 
					    penup()
 | 
				
			||||||
    goto(0,-100)
 | 
					    goto(0,25)
 | 
				
			||||||
    setheading(90)
 | 
					    setheading(135)
 | 
				
			||||||
    pendown()
 | 
					    pendown()
 | 
				
			||||||
    draw_oval(10,45,"black")
 | 
					    draw_oval(10,100,"black")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def draw_butterfly():
 | 
					def draw_butterfly():
 | 
				
			||||||
 | 
					   
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    draw_wing(-10,-40, 50, 120, "indianred",50)
 | 
				
			||||||
 | 
					    draw_wing(-10,-75, 40, 90, "palevioletred", 60)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    draw_wing(10,25, 50, 120, "indianred",220)
 | 
				
			||||||
 | 
					    draw_wing(10,-30, 40, 90, "palevioletred", 210)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    draw_body()
 | 
					    draw_body()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    draw_wing(-10,-60, 60, 120, "purple",120)
 | 
					 | 
				
			||||||
    draw_wing(-10,-40, 40, 60, "pink", 130)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    draw_wing(10,-60, 60, 120, "purple",120)
 | 
					 | 
				
			||||||
    draw_wing(10,-40, 40, 60, "pink", 130)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
draw_butterfly()
 | 
					draw_butterfly()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user