-
Notifications
You must be signed in to change notification settings - Fork 19
/
chrome.py
66 lines (58 loc) · 940 Bytes
/
chrome.py
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
61
62
63
64
65
66
from turtle import *
from time import sleep
colormode(255)
red=(234, 68, 53); green=(0, 172, 71); yellow=(255, 186, 0);
blue=(66, 133, 244)
r=120
seth(-150)
up()
#-------------RED -------------
color(red)
begin_fill()
fd(r)
down()
right(90)
circle(-r, 120)
fd(r*3**.5)
left(120)
circle(2*r, 120)
left(60)
fd(r*3**.5)
end_fill()
#-------------Green -------------
left(180)
color(green)
begin_fill()
fd(r*3**.5)
left(120)
circle(2*r, 120)
left(60)
fd(r*3**.5)
left(180)
circle(-r, 120)
end_fill()
#-------------Yellow -------------
left(180)
circle(r,120)
color(yellow)
begin_fill()
circle(r, 120)
right(180)
fd(r*3**.5)
right(60)
circle(-2*r, 120)
right(120)
fd(r*3**.5)
end_fill()
#-------------Blue Circle-------------
up()
left(98)
fd(15)
seth(60)
color(blue)
down()
begin_fill()
circle(distance(0,0))
end_fill()
ht()
done()