generated from mwc/project_drawing
	Made a heart
This commit is contained in:
		
							
								
								
									
										44
									
								
								drawing.py
									
									
									
									
									
								
							
							
						
						
									
										44
									
								
								drawing.py
									
									
									
									
									
								
							@@ -5,3 +5,47 @@
 | 
			
		||||
# (Briefly describe what this program does.)
 | 
			
		||||
 | 
			
		||||
from turtle import *
 | 
			
		||||
from math import sqrt
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def fly (distance):
 | 
			
		||||
    penup()
 | 
			
		||||
    forward(distance)
 | 
			
		||||
    pendown()
 | 
			
		||||
 | 
			
		||||
def quarter_arc_right(radius):
 | 
			
		||||
    "Draws a quarter of an arc, turning to the right."
 | 
			
		||||
    circle(-radius, 90)
 | 
			
		||||
 | 
			
		||||
def quarter_arc_left(radius):
 | 
			
		||||
    "Draws a quarter of an arc, turning to the left."
 | 
			
		||||
    circle(radius, 90)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
left(90)
 | 
			
		||||
fly(150)
 | 
			
		||||
right(90)
 | 
			
		||||
left(90)
 | 
			
		||||
quarter_arc_left(100)
 | 
			
		||||
quarter_arc_left(100)
 | 
			
		||||
left(90.)
 | 
			
		||||
fly(200)
 | 
			
		||||
left(90)
 | 
			
		||||
quarter_arc_right(100)
 | 
			
		||||
quarter_arc_right(100)
 | 
			
		||||
right(24.6) 
 | 
			
		||||
forward(480)
 | 
			
		||||
right(90+40.7)  
 | 
			
		||||
forward(480)
 | 
			
		||||
fly(100)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
input()
 | 
			
		||||
		Reference in New Issue
	
	Block a user