Created
December 7, 2020 11:04
-
-
Save thetongs/b980ceb36cf864478625cc308fef908c to your computer and use it in GitHub Desktop.
This file contains 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 | |
turtle.bgcolor('black') | |
turtle.pensize(2) | |
def curve(): | |
for i in range(200): | |
turtle.right(1) | |
turtle.forward(1) | |
turtle.speed(0) | |
turtle.color('red', 'pink') | |
turtle.begin_fill() | |
turtle.left(140) | |
turtle.forward(111.65) | |
curve() | |
turtle.left(120) | |
curve() | |
turtle.forward(111.65) | |
turtle.end_fill() | |
turtle.hideturtle() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment