diff --git a/__pycache__/tile.cpython-312.pyc b/__pycache__/tile.cpython-312.pyc new file mode 100644 index 0000000..1103229 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..16bf487 Binary files /dev/null and b/__pycache__/tile_grid.cpython-312.pyc differ diff --git a/python.py b/python.py new file mode 100644 index 0000000..d82545c --- /dev/null +++ b/python.py @@ -0,0 +1,21 @@ +from turtle import * + +def square(side_length): + forward(side_length) + right(90) + forward(side_length) + right(90) + forward(side_length) + right(90) + forward(side_length) + right(90) +sizes = [20,40,60,80,100] +for size in sizes: + square(size) +for size in sizes: + square(20) + penup() + forward(40) + pendown() + input() + \ No newline at end of file diff --git a/tile.py b/tile.py index 697cf8e..adbff0e 100644 --- a/tile.py +++ b/tile.py @@ -11,7 +11,7 @@ def draw_tile_outline(size): def draw_squiggle(size): forward(size/4) - pencolor("black") + pencolor("blue") left(90) quarter_arc_right(size/4) quarter_arc_left(size/4) diff --git a/tile_grid.py b/tile_grid.py index 72a0f43..b648915 100644 --- a/tile_grid.py +++ b/tile_grid.py @@ -10,7 +10,9 @@ 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.) + (To draw width, moves to x origin then moves up one row to create tile size then returns to the original + moves to the right 90 for the width, moves to the left 90 for the height then goes back to the origin + and repeats) """ for y in range(height): for x in range(width):