Guest User

Untitled

a guest
Jan 17th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. def clear():
  2. for r in range(rows):
  3. for c in range(rows):
  4. if r%3 == 1 and c%3 == 1:
  5. color = brown;
  6. grid[r][c] = 1;
  7. else:
  8. color = white;
  9. grid[r][c] = 0;
  10. pygame.draw.rect(screen, color, [(margin+width)*c+margin, (margin+height)*r+margin, width, height])
  11. pygame.display.flip();
Add Comment
Please, Sign In to add comment