forked from DhanushNehru/Python-Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsunflowerGood.py
60 lines (60 loc) · 945 Bytes
/
sunflowerGood.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
from turtle import *
def flower():
speed(-1)
color('orange')
begin_fill()
fillcolor('yellow')
for i in range(40):
lt(210)
lt(180)
circle(40,100)
lt(180)
circle(40,100)
end_fill()
color('brown')
begin_fill()
fillcolor('brown')
up()
goto(-49,163)
down()
circle(60)
end_fill()
def stick():
width(5)
color('green')
up()
goto(-28,0)
down()
rt(-70)
fd(300)
def leaf():
width(2)
rt(180)
up()
fd(170)
down()
color('light green')
begin_fill()
fillcolor('light green')
circle(50,100)
lt(80)
circle(50,100)
end_fill()
def leaf2():
begin_fill()
fillcolor('light green')
rt(20)
circle(50,100)
lt(80)
circle(50,100)
end_fill()
def main():
reset()
flower()
stick()
leaf()
leaf2()
ht()
if __name__=='__main__':
main()
mainloop()