Skip to content

Instantly share code, notes, and snippets.

@JayantGoel001
Created January 9, 2021 21:30
Show Gist options
  • Save JayantGoel001/ff3517132a3ddc1ad2d286a217317dc4 to your computer and use it in GitHub Desktop.
Save JayantGoel001/ff3517132a3ddc1ad2d286a217317dc4 to your computer and use it in GitHub Desktop.
Creating A Heart using turtle
import turtle
def curvedPart():
for i in range(200):
turtle.right(1)
turtle.forward(1)
turtle.speed(3)
turtle.bgcolor("black")
turtle.pensize(3)
turtle.color("red", 'red')
turtle.begin_fill()
turtle.left(140)
turtle.forward(111.65)
curvedPart()
turtle.left(120)
curvedPart()
turtle.forward(111.65)
turtle.end_fill()
turtle.hideturtle()
turtle.done()
@JayantGoel001
Copy link
Author

heart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment