import turtle
def curve():
for i in range(200):
turtle.right(1)
turtle.forward(1)
turtle.color("red")
turtle.begin_fill()
turtle.left(140)
turtle.forward(111.65)
curve()
turtle.left(120)
curve()
turtle.forward(111.65)
turtle.end_fill()
turtle.hideturtle()
turtle.done()
Code reference: @pythongrowin
Comments
Post a Comment