Untitled
window = turtle.Screen() window.bgcolor("white") dog = turtle.Turtle() dog.speed(1) # Body dog.fillcolor("brown") dog.begin_fill() dog.circle(100) dog.end_fill() # Head dog.penup() dog.goto(0, 100) dog.pendown() dog.fillcolor("brown") dog.begin_fill() dog.circle(50) dog.end_fill() # Eyes dog.penup() dog.goto(-20, 150) dog.pendown() dog.fillcolor("black") dog.begin_fill() dog.circle(10) dog.end_fill() dog.penup() dog.goto(20, 150) dog.pendown() dog.fillcolor("black") dog.begin_fill() dog.circle(10) dog.end_fill() # Nose dog.penup() dog.goto(0, 130) dog.pendown() dog.fillcolor("black") dog.begin_fill() dog.circle(5) dog.end_fill() window.mainloop()
Leave a Comment