generated from mwc/project_drawing
	updated drawing.py
This commit is contained in:
		
							
								
								
									
										22
									
								
								drawing.py
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								drawing.py
									
									
									
									
									
								
							@@ -5,3 +5,25 @@
 | 
				
			|||||||
# (Briefly describe what this program does.)
 | 
					# (Briefly describe what this program does.)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from turtle import *
 | 
					from turtle import *
 | 
				
			||||||
 | 
					from superturtle.image import save_svg
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def draw_circle (radius):
 | 
				
			||||||
 | 
					     
 | 
				
			||||||
 | 
					    penup()
 | 
				
			||||||
 | 
					    right(90)
 | 
				
			||||||
 | 
					    forward(radius*3)
 | 
				
			||||||
 | 
					    pendown()
 | 
				
			||||||
 | 
					    circle(radius)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					width, height = 816, 1056
 | 
				
			||||||
 | 
					with save_svg(width, height, "drawing.svg"):  
 | 
				
			||||||
 | 
					    circles=[90,80,75,70,65,80,55,50,45,40,35,30,25,20,15,10,8,6,4,2,1] 
 | 
				
			||||||
 | 
					    left(90)
 | 
				
			||||||
 | 
					    penup()
 | 
				
			||||||
 | 
					    forward(200)
 | 
				
			||||||
 | 
					    pendown()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    for i in circles:
 | 
				
			||||||
 | 
					        draw_circle (i)
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								poetry.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								poetry.lock
									
									
									
										generated
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
				
			|||||||
# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand.
 | 
					# This file is automatically @generated by Poetry 2.2.0 and should not be changed by hand.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[[package]]
 | 
					[[package]]
 | 
				
			||||||
name = "superturtle"
 | 
					name = "superturtle"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user