Commit 85bd4b22 by BellCodeEditor

save project

parent 4594ae6d
Showing with 25 additions and 3 deletions
...@@ -2,9 +2,30 @@ import turtle ...@@ -2,9 +2,30 @@ import turtle
pen = turtle.Pen() pen = turtle.Pen()
pen.fillcolor("red") pen.fillcolor("red")
pen.begin_fill() pen.begin_fill()
for i in range(5): for i in range(36):
pen.forward(200) pen.forward(200)
pen.right(144) pen.right(170)
pen.end_fill() pen.end_fill()
pen.hideturtle() pen.hideturtle()
turtle.done()
pen.up()
pen.goto(100,100)
pen.down()
pen.fillcolor("blue")
pen.begin_fill()
for i in range(36):
pen.forward(200)
pen.right(170)
pen.end_fill()
pen.up()
pen.goto(200,200)
pen.down()
pen.fillcolor("yellow")
pen.begin_fill()
for i in range(36):
pen.forward(200)
pen.right(170)
pen.end_fill()
turtle.done()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment