-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalentine.py
More file actions
63 lines (57 loc) · 968 Bytes
/
valentine.py
File metadata and controls
63 lines (57 loc) · 968 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
61
62
63
import turtle
# Creating a window
t = turtle.Turtle()
turtle.Screen().bgcolor("black")
# Drawing a heart
t.pensize(5)
t.color("red")
t.begin_fill()
t.left(50)
t.forward(133)
t.circle(50, 200)
t.right(140)
t.circle(50, 200)
t.forward(133)
t.end_fill()
# Arrow drowing
t.penup()
t.goto(-90, 30)
t.pendown()
t.left(90)
t.pensize(5)
t.color("white")
t.forward(270)
t.right(150)
t.forward(30)
t.backward(30)
t.right(60)
t.forward(30)
t.pensize(1)
t.penup()
t.goto(-90, 30)
t.pendown()
t.fillcolor("white")
t.begin_fill()
t.forward(30)
t.right(150)
t.forward(50)
t.right(30)
t.forward(30)
t.right(120)
t.forward(30)
t.right(30)
t.forward(50)
t.right(150)
t.forward(30)
t.end_fill()
# Text writing
t.penup()
t.goto(-280, -120)
t.pendown()
t.write("Happy Valentine's", font=("Arial", 50, "bold"))
t.penup()
t.goto(-60, -210)
t.pendown()
t.write("Day", font=("Arial", 50, "bold"))
t.hideturtle()
turtle.done()