generated from mwc/lab_iteration
I only changed the discription of the fuction
I dont think i will if its for my own use as its more work that i dont think i need to help me understand the code, but i might do it if its code im using to teach a course as it is very useful to people trying to understand what is going on.
This commit is contained in:
@@ -10,7 +10,7 @@ from tile import fly
|
||||
def draw_tile_grid(width, height, tile_size, tile_function):
|
||||
"""Draws a (width x height) grid, with tile_function drawn on each tile.
|
||||
|
||||
(Your explanation here.)
|
||||
This function draws square tiles with the function described in tile_fuction on it, then once its completed the needed amount of squares in that row it returns back to the orginal x and y point and moves up 1 in y to start the next row
|
||||
"""
|
||||
for y in range(height):
|
||||
for x in range(width):
|
||||
|
||||
Reference in New Issue
Block a user