generated from mwc/lab_iteration
I changed the pattern of the tiles and added the docstring to the function.
Checkpoint 3: - I will definitely use docstrings in the future. I will use them because they are helpful in showing another person what each function does. Also, when I am debugging my code it will be helpful if I know what each function is supposed to be doing.
This commit is contained in:
5
tile.py
5
tile.py
@@ -4,6 +4,11 @@ def draw_tile(size):
|
||||
"Draws one tile, which can be repeated to form a pattern."
|
||||
draw_tile_outline(size)
|
||||
draw_squiggle(size)
|
||||
draw_squiggle(size/2)
|
||||
draw_squiggle(size/3)
|
||||
draw_squiggle(size/4)
|
||||
draw_squiggle(size/5)
|
||||
draw_squiggle(size/6)
|
||||
|
||||
def draw_tile_outline(size):
|
||||
pencolor("#dddddd")
|
||||
|
||||
Reference in New Issue
Block a user