generated from mwc/lab_iteration
i changed the size in square too create a line of squares
This commit is contained in:
@@ -11,15 +11,15 @@ from superturtle.movement import no_delay
|
||||
from argparse import ArgumentParser
|
||||
|
||||
parser = ArgumentParser("python drawtiles.py", description="Draws a grid of tiles.")
|
||||
parser.add_argument("width", type=int, help="How many tiles across the grid should be")
|
||||
parser.add_argument("height", type=int, help="How many tiles high the grid should be")
|
||||
parser.add_argument("size", type=int, help="Side length of each tile")
|
||||
parser.add_argument("5", type=int, help="How many tiles across the grid should be")
|
||||
parser.add_argument("10", type=int, help="How many tiles high the grid should be")
|
||||
parser.add_argument("15", type=int, help="Side length of each tile")
|
||||
parser.add_argument("--fast", action="store_true", help="Skip turtle animation and show the result")
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.fast:
|
||||
with no_delay():
|
||||
draw_tile_grid(args.width, args.height, args.size, draw_tile)
|
||||
draw_tile_grid(args,5, args,10, args,15, -fast, draw_tile)
|
||||
else:
|
||||
draw_tile_grid(args.width, args.height, args.size, draw_tile)
|
||||
input()
|
||||
|
||||
Reference in New Issue
Block a user