generated from mwc/lab_iteration
Checkpoint 3) I do write docstrings, I think that they are
extremely useful to talk about How the program functions, I like being detailed especially for myself to look back at.
This commit is contained in:
parent
81efee0766
commit
2c8e3a2290
Binary file not shown.
Binary file not shown.
1
tile.py
1
tile.py
|
@ -1,4 +1,5 @@
|
|||
from turtle import *
|
||||
#import random
|
||||
|
||||
def draw_tile(size):
|
||||
"Draws one tile, which can be repeated to form a pattern."
|
||||
|
|
|
@ -10,7 +10,8 @@ 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.)
|
||||
(we are iterating over both the height and width here. it will run the tile_size function every time for the height and width, then fly to the beginning of the tile? Then it looks like
|
||||
its moving up by a tile size. It also returns to the x, y origin.
|
||||
"""
|
||||
for y in range(height):
|
||||
for x in range(width):
|
||||
|
|
Loading…
Reference in New Issue