i changed the size in square too create a line of squares

This commit is contained in:
jrohr
2026-02-11 11:13:15 -05:00
parent e21aafc032
commit 259b74b261
4 changed files with 31 additions and 14 deletions

View File

@@ -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()