generated from mwc/problemset_typeface
After drawing K, L, and O, I tried to do E. I used a function to draw some part of the letter, E. I named the function 'arm' and repeated the same process.
I wanted to try something different this time, and I also want to use what I have learned from this course. So, even though the fuction runs only twice, I was satisfied it worked well, and this is something I was able to do it without fixing errors multiple times. I felt that this time I intentionally slowed down my thinking process and have a plan in advance before starting typing anything. My skill for sketching has improved too.
This commit is contained in:
parent
19ea5261f1
commit
6feb61778d
24
typeface.py
24
typeface.py
|
@ -25,7 +25,29 @@ def draw_letter_d(unit):
|
|||
pass
|
||||
|
||||
def draw_letter_e(unit):
|
||||
pass
|
||||
def arm():
|
||||
forward(6*unit)
|
||||
right(90)
|
||||
forward(1*unit)
|
||||
right(90)
|
||||
forward(6*unit)
|
||||
left(90)
|
||||
forward(2.5*unit)
|
||||
left(90)
|
||||
left(90)
|
||||
forward(8*unit)
|
||||
right(90)
|
||||
forward(2*unit)
|
||||
arm()
|
||||
arm()
|
||||
forward(6*unit)
|
||||
right(90)
|
||||
forward(1*unit)
|
||||
right(90)
|
||||
forward(8*unit)
|
||||
right(180)
|
||||
|
||||
|
||||
|
||||
def draw_letter_f(unit):
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue