import turtle
def moving_object(move):
move.fillcolor('Purple')
move.begin_fill()
move.circle(10)
move.end_fill()
if __name__ == "__main__" :
screen = turtle.Screen()
screen.setup(600,600)
# screen background color
screen.bgcolor('white')
screen.tracer(0)
move = turtle.Turtle()
move.color('Purple')
move.speed(0)
move.width(2)
move.hideturtle()
move.penup()
move.goto(-250, 0)
move.pendown()
while True :
move.clear()
moving_object(move)
screen.update()
move.forward(0.5)
No comments:
Post a Comment