Yo

From Mr , 1 Year ago, written in Python, viewed 262 times.
URL http://putcode.com/view/c4f0af8c Embed
Download Paste or View Raw
  1. import turtle
  2.  
  3. def draw_circle(turtle, color, size, x, y):
  4.     turtle.penup()
  5.     turtle.color(color)
  6.     turtle.fillcolor(color)
  7.     turtle.goto(x,y)
  8.     turtle.begin_fill()
  9.     turtle.circle(size)
  10.     turtle.end_fill()
  11.     turtle.pendown()
  12.  
  13. tommy = turtle.Turtle()
  14. tommy.shape("turtle")
  15. tommy.speed(500)
  16.  
  17. draw_circle(tommy, "green", 50, 25, 0)
  18. draw_circle(tommy, "blue", 50, 0, 0)
  19. draw_circle(tommy, "yellow", 50, -25, 0)

Reply to "Yo"

Here you can reply to the paste above

captcha