Advertisement
otorp2

002 python def circles

Jan 12th, 2020
426
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. import turtle
  2.  
  3. t = turtle.Turtle()
  4.  
  5. draw_area = turtle.Screen()
  6. draw_area.setup(width = 500, height =500)
  7.  
  8. print(draw_area.setup)
  9. #draw_area.title('jons turtle')
  10.  
  11. def square(x):
  12.  for i in range(4):
  13.   t.fd(50)
  14.   t.right(x)
  15.  
  16.  
  17.  
  18. print("jij")
  19. for j in ('#ffff00', '#009900', '#cc66cc'):
  20.  t.color(j)
  21.  t.begin_fill()
  22.  t.circle(50)
  23.  t.forward(10)
  24.  t.end_fill()
  25.  
  26.  square(90)
  27.  
  28. draw_area.exitonclick()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement