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.
This commit is contained in:
Chris Mekelburg 2024-09-21 11:59:40 -04:00
parent 7e3cafa490
commit 8ec58ebc44
1 changed files with 24 additions and 1 deletions

View File

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