From 55e84fd59486ba978a6189880a018babfd4474d1 Mon Sep 17 00:00:00 2001 From: Cory Dean Chung Date: Fri, 28 Jul 2023 11:08:40 -0400 Subject: [PATCH] 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. --- typeface.py | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/typeface.py b/typeface.py index 2c59dd8..bc38b07 100644 --- a/typeface.py +++ b/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()