generated from mwc/lab_turtle
	experimented with turtle forward, color, and right
I have not used python in a while, so getting a reintroduction was fun. At first, I got the angles wrong but after running it, I was able to adjust accordingly to make what i pictured. I then decided to add color to make it a bit more fun. I enjoyed getting to try out a differnt shape and playing around with colors!
This commit is contained in:
		
							
								
								
									
										32
									
								
								drawing.py
									
									
									
									
									
								
							
							
						
						
									
										32
									
								
								drawing.py
									
									
									
									
									
								
							@@ -8,15 +8,27 @@ from turtle import (
 | 
			
		||||
    color,
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
forward(100)
 | 
			
		||||
right(360 * 2 / 5)
 | 
			
		||||
forward(100)
 | 
			
		||||
right(360 * 2 / 5)
 | 
			
		||||
forward(100)
 | 
			
		||||
right(360 * 2 / 5)
 | 
			
		||||
forward(100)
 | 
			
		||||
right(360 * 2 / 5)
 | 
			
		||||
forward(100)
 | 
			
		||||
right(360 * 2 / 5)
 | 
			
		||||
color("red")
 | 
			
		||||
forward(200)
 | 
			
		||||
right(90)
 | 
			
		||||
color("orange")
 | 
			
		||||
forward(200)
 | 
			
		||||
right(90)
 | 
			
		||||
color("yellow")
 | 
			
		||||
forward(200)
 | 
			
		||||
right(90)
 | 
			
		||||
color("green")
 | 
			
		||||
forward(200)
 | 
			
		||||
right(135)
 | 
			
		||||
color("blue")
 | 
			
		||||
forward(282.8)
 | 
			
		||||
right(135)
 | 
			
		||||
color("yellow")
 | 
			
		||||
forward(200)
 | 
			
		||||
right(135)
 | 
			
		||||
color("purple")
 | 
			
		||||
forward(282.8)
 | 
			
		||||
 | 
			
		||||
input()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										7
									
								
								poetry.lock
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								poetry.lock
									
									
									
										generated
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
# This file is automatically @generated by Poetry 2.1.4 and should not be changed by hand.
 | 
			
		||||
package = []
 | 
			
		||||
 | 
			
		||||
[metadata]
 | 
			
		||||
lock-version = "2.1"
 | 
			
		||||
python-versions = ">=3.10,<4.0"
 | 
			
		||||
content-hash = "7b8fc01b274bd807fb00372bbc8e138330f15ae7978ed61e180f3b17ec076725"
 | 
			
		||||
		Reference in New Issue
	
	Block a user