-
Notifications
You must be signed in to change notification settings - Fork 38
/
love.py
90 lines (77 loc) · 928 Bytes
/
love.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
from turtle import *
bgcolor('#9fa')
color('red')
shape('turtle')
title('Love Drawing using Turtle')
#Turtle shrink animation
shapesize(10,10)
fd(0)
shapesize(9,9)
fd(0)
shapesize(8,8)
fd(0)
shapesize(7,7)
fd(0)
shapesize(6,6)
fd(0)
shapesize(5,5)
fd(0)
shapesize(4,4)
fd(0)
shapesize(3,3)
fd(0)
shapesize(2,2)
fd(0)
shapesize(1,1)
#Draw Love shape
begin_fill()
left(50)
forward(150)
circle(80,180)
right(100)
circle(80,180)
forward(150)
forward(41)
end_fill()
#Write Love text
up()
left(140)
forward (180)
left(90)
forward(80)
right(90)
down()
bgcolor('orange')
pencolor('white')
width(4)
backward(50)
right(90)
forward(30)
up()
forward(25)
down()
circle(20)
up()
forward(50)
down()
left(60)
forward(30)
left(120)
up()
forward (30)
left(100)
down()
forward(30)
up()
left(80)
forward(60)
down()
bgcolor('#222')
circle(13,-270)
left(90)
forward(26)
up()
right(90)
forward(200)
bgcolor('pink')
done() # exit program