-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalentine.py
35 lines (35 loc) · 1.1 KB
/
valentine.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
import math
import webbrowser
import time
import turtle as t
class LOVE:
def __init__(self,curve,s) -> None:
self.lou=curve
self.lou.pendown()
self.lou.color('red')
self.lou.begin_fill()
for i in range(372):
a=math.radians(i)
x=16*((math.sin(a)))**3
y=13*(math.cos(a))-5*(math.cos(2*(a)))-2*(math.cos(3*(a)))-math.cos(4*(a))
self.lou.goto(s*x,s*y)
self.lou.penup()
self.lou.end_fill()
self.lou.hideturtle()
if __name__ == "__main__":
win = t.Screen()
# url="https://www.youtube.com/watch?v=izGwDsrQ1eQ"
# chrome_path = 'C:/Program Files/Google/Chrome/Application/chrome.exe %s'
# webbrowser.get(chrome_path).open(url)
time.sleep(3)
win.title("TURU L0B")
caption=t.Turtle()
caption.color('red')
caption.penup()
caption.goto(0,250)
caption.write("Hey Senorita! You're iota. I'm iota.\nTogether we can make it REAL.",align="center" ,font=("Helvatica",20,"normal"))
caption.penup()
caption.hideturtle()
love= t.Turtle()
LOVE(love,10)
t.done()