Advertisement
Guest User

Untitled

a guest
Jan 18th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. import simple_draw as sd
  2. x = 0
  3. x1 = x + 100
  4. y = 0
  5. y1 = y + 50
  6. sd.resolution = (600, 600)
  7. left_bottom = sd.get_point(0, y)
  8. right_top = sd.get_point(100, y1)
  9.  
  10. #def recrangle(left_point, right_point, color, width):
  11. # for _ in range(3):
  12. # sd.rectangle(left_bottom=left_bottom, right_top=right_top, color=sd.COLOR_RED, width=1)
  13.  
  14. #for _ in range(3):
  15.  
  16. # sd.rectangle(left_bottom=left_bottom, right_top=right_top, color=sd.COLOR_RED, width=1)
  17. for y in range(50, 600, 50):
  18. sd.rectangle(left_bottom=sd.get_point(0, y), right_top=sd.get_point(100, y1), color=sd.COLOR_RED, width=1)
  19. for x in range(0, 901, 100):
  20. sd.rectangle(left_bottom=sd.get_point(x, 0), right_top=sd.get_point(x1, 50), color=sd.COLOR_RED, width=1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement