-
Notifications
You must be signed in to change notification settings - Fork 13
/
love.py
56 lines (49 loc) · 900 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
import time
import turtle
from turtle import *
bg = Screen()
bg.bgcolor('black')
pen = turtle.Turtle()
pen.pencolor('blue')
pen.width(3)
def curva():
for i in range(200):
pen.rt(1)
pen.fd(1)
def love():
pen.fillcolor('red')
pen.begin_fill()
pen.lt(140)
pen.fd(113)
curva()
pen.lt(120)
curva()
pen.fd(112)
pen.end_fill
love()
pen.ht()
def tulis(pesan, pos):
x,y=pos
pen.penup()
pen.goto(x,y)
pen.color('green')
style=('Stencil Std', 18, 'italic')
pen.write(pesan, font=style)
tulis('I',(-68,95))
time.sleep(0.1)
tulis('L',(-55,95))
time.sleep(0.1)
tulis('O',(-42,95))
time.sleep(0.1)
tulis('V',(-30,95))
time.sleep(0.1)
tulis('E',(-14,95))
time.sleep(0.1)
tulis('Y',(10,95))
time.sleep(0.1)
tulis('O',(26,95))
time.sleep(0.1)
tulis('U',(45,95))
time.sleep(0.3)
tulis('AYAANG :3',(-68,70))
time.sleep(5)