Skip to content

Commit beccd23

Browse files
authored
Add files via upload
1 parent 62fdd03 commit beccd23

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Fourth/fourth.py

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

0 commit comments

Comments
 (0)