diff --git a/__pycache__/tile.cpython-311.pyc b/__pycache__/tile.cpython-311.pyc new file mode 100644 index 0000000..4e20477 Binary files /dev/null and b/__pycache__/tile.cpython-311.pyc differ diff --git a/__pycache__/tile_grid.cpython-311.pyc b/__pycache__/tile_grid.cpython-311.pyc new file mode 100644 index 0000000..3bdc659 Binary files /dev/null and b/__pycache__/tile_grid.cpython-311.pyc differ diff --git a/tile.py b/tile.py index 697cf8e..06c2464 100644 --- a/tile.py +++ b/tile.py @@ -10,14 +10,31 @@ def draw_tile_outline(size): square(size) def draw_squiggle(size): - forward(size/4) - pencolor("black") left(90) - quarter_arc_right(size/4) - quarter_arc_left(size/4) + quarter_arc_right(size/2) + quarter_arc_left(size/2) + left(90) + forward(size/2) quarter_arc_left(size/4) quarter_arc_right(size/4) left(90) + forward(size/2) + left(90) + forward(size/2) + left(90) + quarter_arc_right(size/4) + quarter_arc_left(size/4) + forward(size/2) + left(90) + forward(3*size/4) + #forward(size/4) + #pencolor("black") + #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) left(90) fly(size) diff --git a/tile_grid.py b/tile_grid.py index 72a0f43..1ffa421 100644 --- a/tile_grid.py +++ b/tile_grid.py @@ -10,7 +10,10 @@ 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.) + The function draws the grid by drawing the bottom-most row. + The width is the number of tiles within a row. + It creates a full row before creating the row above. + The height is the number of rows. """ for y in range(height): for x in range(width):