generated from mwc/problemset_typeface
letter x, final showing all 4 letters
Letter X was designed using a function for each cross piece. I felt like with this letter I was getting more used to using the grid and using the sqrt function for the sides. I tried to make the letter just as thick as the other 3, but working on a diagonal complicated this a bit. I would have had to work with an even smaller grid to make the X have a width of 1 unit rather than sqrt(2)*unit, so I ended up leaving it this way and the letters still look the same size when running the proof.
This commit is contained in:
parent
2eba3d48c1
commit
cdc326d566
32
typeface.py
32
typeface.py
|
@ -173,7 +173,37 @@ def draw_letter_w(unit):
|
|||
pass
|
||||
|
||||
def draw_letter_x(unit):
|
||||
pass
|
||||
|
||||
def half_x():
|
||||
left(45)
|
||||
forward((3/7)*sqrt(98)*unit)
|
||||
fly(sqrt(2)*unit)
|
||||
forward((3/7)*sqrt(98)*unit)
|
||||
left(90)
|
||||
forward(sqrt(2)*unit)
|
||||
left(90)
|
||||
forward((3/7)*sqrt(98)*unit)
|
||||
fly(sqrt(2)*unit)
|
||||
forward((3/7)*sqrt(98)*unit)
|
||||
left(90)
|
||||
forward(sqrt(2)*unit)
|
||||
|
||||
fly(unit)
|
||||
half_x()
|
||||
left(45)
|
||||
fly(unit*7)
|
||||
left(90)
|
||||
fly(unit)
|
||||
half_x()
|
||||
right(135)
|
||||
fly(unit)
|
||||
right(90)
|
||||
fly(8*unit)
|
||||
right(180)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
def draw_letter_y(unit):
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue