From 2c91a26176647634036f52ca6abced0dee9c82a6 Mon Sep 17 00:00:00 2001 From: kated Date: Mon, 23 Feb 2026 11:00:04 -0500 Subject: [PATCH] Changed the pattern inside the tile in the draw_tile() function (tile.py) and then wrote a description for the draw_tile_grid function. --- tile.py | 10 ++++++++-- tile_grid.py | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/tile.py b/tile.py index 697cf8e..fda9006 100644 --- a/tile.py +++ b/tile.py @@ -12,10 +12,16 @@ def draw_tile_outline(size): def draw_squiggle(size): forward(size/4) pencolor("black") + for i in range(3): + left(90) + quarter_arc_right(size/4) + quarter_arc_right(size/4) + left(90) + fly(size/4) + left(90) + fly(size/4) left(90) quarter_arc_right(size/4) - quarter_arc_left(size/4) - quarter_arc_left(size/4) quarter_arc_right(size/4) left(90) fly(size/4) diff --git a/tile_grid.py b/tile_grid.py index 72a0f43..294d2cd 100644 --- a/tile_grid.py +++ b/tile_grid.py @@ -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.) + For each height, or row of the grid, the computer draws (width) tiles from left to right, and then returns to the left side and moves up one row to draw another row of tiles until all rows have been drawn, and then the cursor returns to the start. """ for y in range(height): for x in range(width):