From 8ec58ebc44a7914c8ffd0341ed1f75198bd92922 Mon Sep 17 00:00:00 2001 From: Chris Mekelburg Date: Sat, 21 Sep 2024 11:59:40 -0400 Subject: [PATCH] letter E The letter E was a bit easier to code and probably what I should have tried for first. I contemplated using some variables for the different side lengths, but with each command only appearing 2 or 3 times, I wasn't sure if it was worth it and it almost seemed like it would add more complication. I'll try some more helper functions and variables with the next letter. --- typeface.py | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/typeface.py b/typeface.py index 346c1b8..9e79f3e 100644 --- a/typeface.py +++ b/typeface.py @@ -70,7 +70,30 @@ def draw_letter_d(unit): pass def draw_letter_e(unit): - pass + forward(8*unit) + left(90) + forward(1.5*unit) + left(90) + forward(6.5*unit) + right(90) + forward(1.75*unit) + right(90) + forward(6.5*unit) + left(90) + forward(1.5*unit) + left(90) + forward(6.5*unit) + right(90) + forward(1.75*unit) + right(90) + forward(6.5*unit) + left(90) + forward(1.5*unit) + left(90) + forward(8*unit) + left(90) + forward(8*unit) + left(90) def draw_letter_f(unit): pass