Skip to content

Commit 52ecd29

Browse files
authored
Add files via upload
1 parent 6935d72 commit 52ecd29

File tree

1 file changed

+20
-0
lines changed
  • Python_Begginer_Projects/Amazing

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import math
2+
from turtle import *
3+
4+
def heart(x):
5+
return 12*math.sin(x) ** 3
6+
7+
def show(x):
8+
return 12 * math.cos(x) - 5 * math.cos(2 * x) - 2 * math.cos(4 * x)
9+
10+
speed(0)
11+
bgcolor('black')
12+
13+
for i in range(10000):
14+
x = heart(i) * 20
15+
y = show(i) * 20
16+
goto(x, y)
17+
for j in range(5):
18+
color('#f73487')
19+
goto(x,0)
20+
done()

0 commit comments

Comments
 (0)