Commit 047067dd by BellCodeEditor

save project

parent 654bc3ba
Showing with 36 additions and 0 deletions
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("light blue")
pen.shape("turtle")
pen.hideturtle()
pen.speed(0)
color_list = ['red','orange','yellow','green','blue','purple','grey','black','pink']
pen.width(5)
pen.up()
pen.goto(-100,100)
for i in range(1,4):
for j in range(1,4):
pen.pencolor(color_list[i*j-1])
pen.fillcolor(color_list[i*j-1])
pen.begin_fill()
pen.left(45)
pen.forward(40)
pen.circle(20,180)
pen.right(90)
pen.circle(20,180)
pen.forward(40)
pen.left(45)
pen.end_fill()
pen.up()
pen.forward(100)
pen.down()
pen.up()
pen.right(90)
pen.forward(100)
pen.right(90)
pen.forward(300)
pen.left(180)
pen.down()
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