New heart shape deign using turtle

             Welcome to new heart shape 

This is a new heart shape deign using turtle in python.





import math
from turtle import *
def herata(k):
return 15*math.sin(k)**3
def heartb(k):
return 12*math.cos(k)-5*\
math.cos(2*k)-2*\
math.cos(3*k)-\
math.cos(4*k)
speed(1000)
bgcolor("black")
for i in range(6000):
goto(herata(i)*20,heartb(i)*20)
for j in range(5):
color('#f73487')
goto(0,0)
done()

Comments

Popular posts from this blog

Screen Recording using python.

wallpaper changer.

Find any color from image using python