generated from mwc/project_drawing
	Compare commits
	
		
			2 Commits
		
	
	
		
			d50a9548a4
			...
			e7fa4e9eb7
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					e7fa4e9eb7 | ||
| 
						 | 
					f4eb78122a | 
@@ -12,9 +12,9 @@ I will be making a butterfly fluttering its wings. The view will be from the fro
 | 
			
		||||
(Include your planning here, including your project milestone.)
 | 
			
		||||
 | 
			
		||||
### 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.
 | 
			
		||||
 | 
			
		||||
### Milestone 2
 | 
			
		||||
 | 
			
		||||
Create background. I want to have a solid color background. 
 | 
			
		||||
 | 
			
		||||
### Milestone 3
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										38
									
								
								drawing.py
									
									
									
									
									
								
							
							
						
						
									
										38
									
								
								drawing.py
									
									
									
									
									
								
							@@ -1,7 +1,41 @@
 | 
			
		||||
# drawing.py
 | 
			
		||||
# ----------
 | 
			
		||||
# By ____(you)___________
 | 
			
		||||
# By Mishaal
 | 
			
		||||
#
 | 
			
		||||
# (Briefly describe what this program does.)
 | 
			
		||||
# The program draws a butterfly
 | 
			
		||||
 | 
			
		||||
from turtle import *
 | 
			
		||||
 | 
			
		||||
from turtle import forward, right
 | 
			
		||||
from superturtle.movement import fly, no_delay
 | 
			
		||||
 | 
			
		||||
fly(-150, 150)
 | 
			
		||||
with no_delay():
 | 
			
		||||
    for i in range(720):
 | 
			
		||||
        forward(300)
 | 
			
		||||
        right(71)
 | 
			
		||||
 | 
			
		||||
def draw_oval(width, height, color):
 | 
			
		||||
    fillcolor(color)
 | 
			
		||||
    begin_fill()
 | 
			
		||||
    for i in range(2):
 | 
			
		||||
        circle(width, 90)
 | 
			
		||||
        circle(height, 90)
 | 
			
		||||
    end_fill()
 | 
			
		||||
 | 
			
		||||
def draw_wing(x, y, width, height, color, angle):
 | 
			
		||||
    penup()
 | 
			
		||||
    goto(x, y)
 | 
			
		||||
    setheading(angle)
 | 
			
		||||
    pendown()
 | 
			
		||||
    draw_oval(t, width, height, color)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def draw_body():
 | 
			
		||||
    penup()
 | 
			
		||||
    goto(0,-100)
 | 
			
		||||
    setheading(90)
 | 
			
		||||
    pendown()
 | 
			
		||||
    draw_oval(10,45,"black")
 | 
			
		||||
 | 
			
		||||
input()
 | 
			
		||||
		Reference in New Issue
	
	Block a user