Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #----------------------------------------------------------------------
- def createGrid():
- """"""
- width = 800
- height = 600
- gridsize = 5
- wByG = width / gridsize
- hByG = height / gridsize
- grids = []
- for h in range(hByG):
- widths = []
- for w in range(wByG):
- groups = []
- for i in range(gridsize):
- x = (gridsize * w) + i
- groups.append((x, h))
- widths.append(groups)
- grids.append(widths)
- import pprint
- #all > line > grouping
- pprint.pprint(grids)
Advertisement
Add Comment
Please, Sign In to add comment