generated from mwc/lab_iteration
i made my tile and added the explanation
This commit is contained in:
6
tile.py
6
tile.py
@@ -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)
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user