add explaination

3: of course, otherwise, i will lose tract on what functions I defined and might be confusing for others.
It's not only for future use, but also for sharing with others.
This commit is contained in:
grace-xing6 2024-09-11 11:08:50 -04:00
parent ff4218a8ce
commit 6837ca402b
3 changed files with 2 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -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.)
(First, for x in range width, draw a tile defined by tile_size, then draw the curve by calling fly function.
After that, return to the original position to repeat the process. When x and y come to the number we input, it will stop.)
"""
for y in range(height):
for x in range(width):