Created
January 9, 2021 21:30
-
-
Save JayantGoel001/ff3517132a3ddc1ad2d286a217317dc4 to your computer and use it in GitHub Desktop.
Creating A Heart using turtle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
Author
JayantGoel001
commented
Jan 9, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment