Commit ea20e558 by BellCodeEditor

save project

parent 350bf139
Showing with 8 additions and 6 deletions
import turtle import turtle
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light red") screen.bgcolor("light blue")
pen=turtle.Pen() pen=turtle.Pen()
pen.pensize(5) pen.pensize(5)
pen.pencolor("red") pen.pencolor("red")
pen.fillcolor("red") pen.fillcolor("red")
pen.begin_fill() pen.begin_fill()
len=60
pen.left(45) pen.left(45)
pen.forward(100) pen.forward(2*len)
pen.circle(50,180) pen.circle(len,180)
pen.right(90) pen.right(90)
pen.circle(50,180) pen.circle(len,180)
pen.forward(100) pen.forward(2*len)
pen.end_fill() pen.end_fill()
pen.penup() pen.penup()
pen.goto(100,0) pen.goto(100,0)
......
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