diff --git a/__pycache__/tile.cpython-312.pyc b/__pycache__/tile.cpython-312.pyc new file mode 100644 index 0000000..f9842b5 Binary files /dev/null and b/__pycache__/tile.cpython-312.pyc differ diff --git a/__pycache__/tile_grid.cpython-312.pyc b/__pycache__/tile_grid.cpython-312.pyc new file mode 100644 index 0000000..9c79dd8 Binary files /dev/null and b/__pycache__/tile_grid.cpython-312.pyc differ diff --git a/tile.py b/tile.py index 697cf8e..56aa4a8 100644 --- a/tile.py +++ b/tile.py @@ -11,12 +11,12 @@ 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) - quarter_arc_left(size/4) - quarter_arc_right(size/4) + quarter_arc_right(size/8) + quarter_arc_left(size/8) + quarter_arc_left(size/8) + quarter_arc_right(size/8) left(90) fly(size/4) left(90) diff --git a/tile_grid.py b/tile_grid.py index 72a0f43..949991d 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.) + (It starts with x origin, and creates a square, and the same size of the square will be copied and generated until the given width is all used for drawing. Then, it comes back to the x origin and then go up one unit and repeats the same process to make a set of squares. Basically we have a two layer of a set of squares, and then it keeps going until it hits the full given height. The wiggly ziggly pattern for the title is added for each tile, and this is done by using tile fuction.The whole process looks like a putting tites or blocks from the bottom and adding more layers) """ for y in range(height): for x in range(width):