-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinitials_turtle.py
More file actions
56 lines (49 loc) · 956 Bytes
/
initials_turtle.py
File metadata and controls
56 lines (49 loc) · 956 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import turtle
def initials_turtle():
window = turtle.Screen()
window.bgcolor("white")
draw_r()
# draw_gap()
draw_r2()
window.exitonclick()
def draw_r():
rr = turtle.Turtle()
rr.shape("turtle")
rr.color("blue")
rr.speed(5)
rr.forward(100)
rr.right(90)
rr.forward(100)
rr.right(90)
rr.forward(100)
rr.left(90)
rr.forward(100)
rr.right(180)
rr.forward(200)
rr.right(180)
rr.forward(100)
rr.left(45)
rr.forward(135)
def draw_r2():
rr = turtle.Turtle()
rr.shape("turtle")
rr.speed(5)
rr.color("blue")
rr.forward(100)
rr.color("white")
rr.forward(50)
rr.color("blue")
rr.forward(100)
rr.right(90)
rr.forward(100)
rr.right(90)
rr.forward(100)
rr.left(90)
rr.forward(100)
rr.right(180)
rr.forward(200)
rr.right(180)
rr.forward(100)
rr.left(45)
rr.forward(135)
initials_turtle()