From ff55612566697f71732f4a91c8bca9e65aa0d889 Mon Sep 17 00:00:00 2001 From: Chris Proctor Date: Sat, 12 Aug 2023 15:44:42 -0400 Subject: [PATCH] scale pensize with grid --- proof.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/proof.py b/proof.py index 4ff6d10..23906e8 100644 --- a/proof.py +++ b/proof.py @@ -16,9 +16,9 @@ from superturtle.movement import no_delay import typeface GRID_COLOR = "lightgrey" -GRID_SIZE = 1 +GRID_SIZE = 0.1 LETTER_COLOR = "black" -LETTER_SIZE = 3 +LETTER_SIZE = 0.3 LETTERS_PER_ROW = 7 ALPHABET = "abcdefghijklmnopqrstuvwxyz" @@ -48,10 +48,10 @@ def draw_proof_sheet(unit): if i > 0 and i % LETTERS_PER_ROW == 0: go_to_next_line(unit) color(GRID_COLOR) - pensize(GRID_SIZE) + pensize(GRID_SIZE * unit) draw_grid(unit) color(LETTER_COLOR) - pensize(LETTER_SIZE) + pensize(LETTER_SIZE * unit) letter_function = getattr(typeface, f"draw_letter_{letter}") letter_function(unit) fly((GRID_ROWS + 1) * unit)