generated from mwc/problemset_typeface
I added the letter P.
This one went really quickly. Although I tried to find letters originally I could put an interesting spin on, I realized that a typeface should probably have some consistency. This made me think of adapting my F into a P. I felt pretty accomplished in doing this one because I again used the circle function, but I required significantly less testing to choose the arguments for it correctly.
This commit is contained in:
parent
787d8db9cf
commit
55e84fd594
34
typeface.py
34
typeface.py
|
@ -152,7 +152,39 @@ def draw_letter_o(unit):
|
|||
pass
|
||||
|
||||
def draw_letter_p(unit):
|
||||
pass
|
||||
circle(unit,90)
|
||||
forward(6 * unit)
|
||||
circle(unit,90)
|
||||
right(180)
|
||||
forward(5 * unit)
|
||||
circle(-2*unit,180)
|
||||
forward(2 * unit)
|
||||
left(90)
|
||||
forward(3 * unit)
|
||||
circle(unit,90)
|
||||
left(180)
|
||||
forward(4 * unit)
|
||||
right(180)
|
||||
penup()
|
||||
forward(3 * unit)
|
||||
left(90)
|
||||
forward(7 * unit)
|
||||
right(90)
|
||||
pendown()
|
||||
forward(unit)
|
||||
circle(-unit,180)
|
||||
forward(unit)
|
||||
right(90)
|
||||
forward(2 * unit)
|
||||
penup()
|
||||
left(90)
|
||||
forward(3 * unit)
|
||||
left(90)
|
||||
forward(7 * unit)
|
||||
left(90)
|
||||
|
||||
|
||||
|
||||
|
||||
def draw_letter_q(unit):
|
||||
penup()
|
||||
|
|
Loading…
Reference in New Issue