generated from mwc/lab_iteration
Changed the docstring on line 13 to explain the
function. I think these are an amazing feature in the coding process. It gives me a tuch stone so I know exactly what I am looking at and how it works. In the drawing project, I think these will be key to creating in bite sized pieces and troubleshooting.
This commit is contained in:
parent
fcee80c21e
commit
49f47f34e3
Binary file not shown.
Binary file not shown.
2
tile.py
2
tile.py
|
@ -11,7 +11,7 @@ def draw_tile_outline(size):
|
|||
|
||||
def draw_squiggle(size):
|
||||
forward(size/4)
|
||||
pencolor("black")
|
||||
pencolor("red")
|
||||
left(90)
|
||||
quarter_arc_right(size/4)
|
||||
quarter_arc_left(size/4)
|
||||
|
|
|
@ -9,8 +9,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.)
|
||||
(Defines height and width for the size of the square. Then defines that after drawing tile, the turtle moves to starting posiiton as to not trace the same square.)
|
||||
"""
|
||||
for y in range(height):
|
||||
for x in range(width):
|
||||
|
|
Loading…
Reference in New Issue