generated from mwc/problemset_typeface
I have completed all 4 letters (a, d, l, u)
I originally had trouble creating the middle section of the A due to the angles. Then I reflected on the correct angles and checked the math and eventually figured it out after some trial and error.
This commit is contained in:
52
typeface.py
52
typeface.py
@@ -17,7 +17,57 @@ def fly(distance):
|
||||
pendown()
|
||||
|
||||
def draw_letter_a(unit):
|
||||
pass
|
||||
forward(unit*3)
|
||||
left(90)
|
||||
forward(unit*1.5)
|
||||
left(90)
|
||||
forward(unit*.5)
|
||||
right(90)
|
||||
forward(unit*.5)
|
||||
right(90)
|
||||
forward(unit*3)
|
||||
right(90)
|
||||
forward(unit*.5)
|
||||
right(90)
|
||||
forward(unit*.5)
|
||||
left(90)
|
||||
forward(unit*1.5)
|
||||
left(90)
|
||||
forward(unit*3)
|
||||
left(90)
|
||||
forward(unit*1.5)
|
||||
left(90)
|
||||
forward(unit)
|
||||
right(74.7448812969)
|
||||
forward(unit*sqrt(32.5))
|
||||
right(15.2551187031)
|
||||
forward(unit)
|
||||
left(90)
|
||||
forward(unit*3)
|
||||
left(90)
|
||||
forward(unit)
|
||||
right(15.2551187031)
|
||||
forward(unit*sqrt(32.5))
|
||||
right(74.7448812969)
|
||||
forward(unit)
|
||||
left(90)
|
||||
forward(unit*1.5)
|
||||
right (180)
|
||||
fly(unit*4)
|
||||
right(90)
|
||||
fly(unit*3.5)
|
||||
forward(unit)
|
||||
left(104.0362434679)
|
||||
forward(unit*sqrt(4.25))
|
||||
left(151.927513064)
|
||||
forward(unit*sqrt(4.25))
|
||||
right(75.9637565321)
|
||||
fly(unit*3.5)
|
||||
left(90)
|
||||
fly(unit*4)
|
||||
left(90)
|
||||
|
||||
|
||||
|
||||
def draw_letter_b(unit):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user