generated from mwc/lab_iteration
I deleted you explanation and wrote what i belive the function does.
When I write my own program, I will use a docstrings because if I come back to the program later on, it will help me remeber what the specific code if for.
This commit is contained in:
2
tile.py
2
tile.py
@@ -6,7 +6,7 @@ def draw_tile(size):
|
|||||||
draw_squiggle(size)
|
draw_squiggle(size)
|
||||||
|
|
||||||
def draw_tile_outline(size):
|
def draw_tile_outline(size):
|
||||||
pencolor("#dddddd")
|
pencolor("#2f5da3")
|
||||||
square(size)
|
square(size)
|
||||||
|
|
||||||
def draw_squiggle(size):
|
def draw_squiggle(size):
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ from tile import fly
|
|||||||
def draw_tile_grid(width, height, tile_size, tile_function):
|
def draw_tile_grid(width, height, tile_size, tile_function):
|
||||||
"""Draws a (width x height) grid, with tile_function drawn on each tile.
|
"""Draws a (width x height) grid, with tile_function drawn on each tile.
|
||||||
|
|
||||||
(Your explanation here.)
|
The function uses loops to draw the rows and coloums on each grid based on the width,height, and size.
|
||||||
"""
|
"""
|
||||||
for y in range(height):
|
for y in range(height):
|
||||||
for x in range(width):
|
for x in range(width):
|
||||||
|
|||||||
Reference in New Issue
Block a user