Commit faa2fbc9 by BellCodeEditor

save project

parent da387568
Showing with 14 additions and 5 deletions
...@@ -3,14 +3,23 @@ ...@@ -3,14 +3,23 @@
""" """
import turtle import turtle
pen = turtle.Pen() pen = turtle.Pen()
pen.speed(2)
pen.shape("turtle") pen.shape("turtle")
pen.fillcolor("red") pen.fillcolor("yellow")
pen.pencolor("yellow") pen.pencolor("red")
pen.width(10) pen.width(10)
pen.begin_fill() pen.begin_fill()
pen.up()
pen.goto(-100,0)
pen.down()
for i in range(5): for i in range(5):
pen.forward(50) pen.forward(200)
pen.left(38)
for j in range(5):
pen.forward(100)
pen.right(144)
pen.right(38)
pen.right(144) pen.right(144)
pen.end_fill() pen.end_fill()
pen.hideturtle() pen.hideturtle()
turtle.done turtle.done()
\ No newline at end of file \ 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