i made my tile and added the explanation

This commit is contained in:
bpot
2026-02-12 11:12:25 -05:00
parent 3c1417b47b
commit 6d4b152c62
2 changed files with 6 additions and 4 deletions

View File

@@ -10,15 +10,15 @@ def draw_tile_outline(size):
square(size)
def draw_squiggle(size):
forward(size/4)
pencolor("black")
forward(size/8)
pencolor("red")
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)
fly(size/8)
left(90)
fly(size)
left(90)

View File

@@ -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.)
(creates a tile and then moves to the starting point of the next tile
untill there are no more tiles in width and then repates for as many
times as heights exist)
"""
for y in range(height):
for x in range(width):