generated from mwc/lab_turtle
experimented with turtle
Enjoyment! I had a lot of fun just exploring and learning about the turtle. I did not make anything specific but it was really fun to just explore and see what I can do. I think I will continue to explore more of the turtle later. I think I had this sense of enjoyment because a lot of the time I am require to make a specific thing with code but with this I was able to make what I wanted while still exploring the different features.
This commit is contained in:
50
drawing.py
50
drawing.py
@@ -6,17 +6,67 @@ from turtle import (
|
||||
penup,
|
||||
pendown,
|
||||
color,
|
||||
pensize,
|
||||
speed,
|
||||
backward,
|
||||
circle,
|
||||
begin_fill,
|
||||
end_fill,
|
||||
)
|
||||
|
||||
color('hot pink')
|
||||
forward(300)
|
||||
right(360 * 2 / 5)
|
||||
forward(100)
|
||||
right(360 * 2 / 5)
|
||||
forward(100)
|
||||
speed(0)
|
||||
pensize(6)
|
||||
right(360 * 2 / 5)
|
||||
forward(100)
|
||||
right(360 * 2 / 5)
|
||||
forward(100)
|
||||
right(360 * 2 / 5)
|
||||
backward(100)
|
||||
right(90)
|
||||
forward (100)
|
||||
speed(3)
|
||||
color('blue')
|
||||
circle (10)
|
||||
pensize(1)
|
||||
forward(100)
|
||||
right(90)
|
||||
circle (30)
|
||||
penup()
|
||||
forward(300)
|
||||
left(45)
|
||||
pendown()
|
||||
pensize(4)
|
||||
circle(50)
|
||||
right(90)
|
||||
color('red')
|
||||
forward(50)
|
||||
right(90)
|
||||
forward(200)
|
||||
begin_fill()
|
||||
right(360 * 2 / 5)
|
||||
forward(100)
|
||||
right(360 * 2 / 5)
|
||||
forward(100)
|
||||
speed(0)
|
||||
pensize(6)
|
||||
right(360 * 2 / 5)
|
||||
forward(100)
|
||||
right(360 * 2 / 5)
|
||||
forward(100)
|
||||
right(360 * 2 / 5)
|
||||
backward(100)
|
||||
end_fill()
|
||||
left(90)
|
||||
forward(20)
|
||||
right(45)
|
||||
pensize(1)
|
||||
forward(300)
|
||||
|
||||
|
||||
input()
|
||||
|
||||
Reference in New Issue
Block a user