-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathclock.py
More file actions
70 lines (56 loc) · 690 Bytes
/
Copy pathclock.py
File metadata and controls
70 lines (56 loc) · 690 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
57
58
59
60
import turtle
import time
t=turtle.Turtle()
t.speed(9)
x=0
y=0
t.write((x,y))
t.home()
y=-200
t.penup()
t.goto(x,y)
t.pendown()
t.begin_fill()
t.fillcolor("orange")
t.circle(200)
y=-150
t.penup()
t.goto(x,y)
t.pendown()
t.circle(150)
t.end_fill()
t.penup()
t.home()
t.left(90)
for n in range(1,13):
t.penup()
t.right(360/12)
t.fd(180)
t.write(n)
t.goto(0,0)
def harm():
t.penup()
t.left(90)
t.pendown()
t.pensize(3)
t.fd(100)
t.home()
def marm():
t.penup()
t.left(90)
t.pendown()
t.pensize(3)
t.fd(140)
t.home()
harm()
marm()
t.left(90)
t.home()
for x in range(0,3600,6):
t.home()
t.right(-90+x)
t.down()
t.fd(100)
time.sleep(1)
t.undo()
turtle.done()