generated from mwc/problemset_typeface
	I didnt change anything that was already there, i just added things, i added all the lines and angles needed to create each letter.
I really sturggled figuring out the angles needed to make diagonal lines in letters, i also struggle A LOT with the whol getting back to where we started, i thought they meant where the writing started and i picked my pen up so my letters were centered on the grids, so the next letter was always in the wrong orintation but once i talked to dr proctor i saw that it needed to end at the bottom left corner where my pen start AND it needed to pointing to thr right. once i got all those things, i was able to get it perfect.
This commit is contained in:
		
							
								
								
									
										130
									
								
								typeface.py
									
									
									
									
									
								
							
							
						
						
									
										130
									
								
								typeface.py
									
									
									
									
									
								
							@@ -12,6 +12,7 @@
 | 
			
		||||
from turtle import *
 | 
			
		||||
from math import sqrt
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def draw_letter_a(unit):
 | 
			
		||||
    pass
 | 
			
		||||
 | 
			
		||||
@@ -46,16 +47,110 @@ def draw_letter_k(unit):
 | 
			
		||||
    pass
 | 
			
		||||
 | 
			
		||||
def draw_letter_l(unit):
 | 
			
		||||
    pass
 | 
			
		||||
    print(position(),heading())
 | 
			
		||||
    penup()
 | 
			
		||||
    forward(unit*2)
 | 
			
		||||
    left(90)
 | 
			
		||||
    forward(unit)
 | 
			
		||||
    right(90)
 | 
			
		||||
    pendown()
 | 
			
		||||
    forward(unit*4)
 | 
			
		||||
    left(90)
 | 
			
		||||
    forward(unit)
 | 
			
		||||
    left(90)
 | 
			
		||||
    forward(unit*3)
 | 
			
		||||
    right(90)
 | 
			
		||||
    forward(unit*5)
 | 
			
		||||
    left(90)
 | 
			
		||||
    forward(unit)
 | 
			
		||||
    left(90)
 | 
			
		||||
    forward(unit*6)
 | 
			
		||||
    penup()
 | 
			
		||||
    forward(unit)
 | 
			
		||||
    right(90)
 | 
			
		||||
    forward(unit*2)
 | 
			
		||||
    right(180)
 | 
			
		||||
    pendown()
 | 
			
		||||
    print(position(),heading())
 | 
			
		||||
 | 
			
		||||
def draw_letter_m(unit):
 | 
			
		||||
    pass
 | 
			
		||||
    penup()
 | 
			
		||||
    forward(unit)
 | 
			
		||||
    left(90)
 | 
			
		||||
    forward(unit)
 | 
			
		||||
    right(90)
 | 
			
		||||
    pendown()
 | 
			
		||||
    forward(unit)
 | 
			
		||||
    left(90)
 | 
			
		||||
    forward(unit*3)
 | 
			
		||||
    right(144)
 | 
			
		||||
    forward(unit*2.5)
 | 
			
		||||
    left(54)
 | 
			
		||||
    forward(unit)
 | 
			
		||||
    left(54)
 | 
			
		||||
    forward(unit*2.5)
 | 
			
		||||
    right(144)
 | 
			
		||||
    forward(unit*3)
 | 
			
		||||
    left(90)
 | 
			
		||||
    forward(unit)
 | 
			
		||||
    left(90)
 | 
			
		||||
    forward(unit*6)
 | 
			
		||||
    left(90)
 | 
			
		||||
    forward(unit)
 | 
			
		||||
    left(57)
 | 
			
		||||
    forward(unit*3.625)
 | 
			
		||||
    right(114)
 | 
			
		||||
    forward(unit*3.625)
 | 
			
		||||
    left(57)
 | 
			
		||||
    forward(unit)
 | 
			
		||||
    left(90)
 | 
			
		||||
    forward(unit*6)
 | 
			
		||||
    penup()
 | 
			
		||||
    forward(unit)
 | 
			
		||||
    right(90)
 | 
			
		||||
    forward(unit)
 | 
			
		||||
    right(180)
 | 
			
		||||
    pendown()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def draw_letter_n(unit):
 | 
			
		||||
    pass
 | 
			
		||||
 | 
			
		||||
def draw_letter_o(unit):
 | 
			
		||||
    pass
 | 
			
		||||
    penup()
 | 
			
		||||
    forward(unit)
 | 
			
		||||
    left(90)
 | 
			
		||||
    forward(unit)
 | 
			
		||||
    right(90)
 | 
			
		||||
    pendown()
 | 
			
		||||
    forward(unit*6)
 | 
			
		||||
    left(90)
 | 
			
		||||
    forward(unit*6)
 | 
			
		||||
    left(90)
 | 
			
		||||
    forward(unit*6)
 | 
			
		||||
    left(90)
 | 
			
		||||
    forward(unit*6)
 | 
			
		||||
    left(90)
 | 
			
		||||
    penup()
 | 
			
		||||
    forward(unit*2)
 | 
			
		||||
    left(90)
 | 
			
		||||
    forward(unit*2)
 | 
			
		||||
    pendown()
 | 
			
		||||
    right(90)
 | 
			
		||||
    forward(unit*2)
 | 
			
		||||
    left(90)
 | 
			
		||||
    forward(unit*2)
 | 
			
		||||
    left(90)
 | 
			
		||||
    forward(unit*2)
 | 
			
		||||
    left(90)
 | 
			
		||||
    forward(unit*2)
 | 
			
		||||
    penup()
 | 
			
		||||
    forward(unit*3)
 | 
			
		||||
    right(90)
 | 
			
		||||
    forward(unit*3)
 | 
			
		||||
    right(180)
 | 
			
		||||
    pendown()
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
def draw_letter_p(unit):
 | 
			
		||||
    pass
 | 
			
		||||
@@ -85,7 +180,34 @@ def draw_letter_x(unit):
 | 
			
		||||
    pass
 | 
			
		||||
 | 
			
		||||
def draw_letter_y(unit):
 | 
			
		||||
    pass
 | 
			
		||||
    penup()
 | 
			
		||||
    forward(unit*3)
 | 
			
		||||
    left(90)
 | 
			
		||||
    forward(unit)
 | 
			
		||||
    right(90)
 | 
			
		||||
    pendown()
 | 
			
		||||
    forward(unit*2)
 | 
			
		||||
    left(90)
 | 
			
		||||
    forward(unit*3)
 | 
			
		||||
    right(34)
 | 
			
		||||
    forward(unit*3.625)
 | 
			
		||||
    left(124)
 | 
			
		||||
    forward(unit*2)
 | 
			
		||||
    left(62)
 | 
			
		||||
    forward(unit*2.3)
 | 
			
		||||
    right(126)
 | 
			
		||||
    forward(unit*2.3)
 | 
			
		||||
    left(64)
 | 
			
		||||
    forward(unit*2)
 | 
			
		||||
    left(124)
 | 
			
		||||
    forward(unit*3.625)
 | 
			
		||||
    right(34)
 | 
			
		||||
    forward(unit*3)
 | 
			
		||||
    penup()
 | 
			
		||||
    forward(unit)
 | 
			
		||||
    right(90)
 | 
			
		||||
    forward(unit*3)
 | 
			
		||||
    right(180)
 | 
			
		||||
 | 
			
		||||
def draw_letter_z(unit):
 | 
			
		||||
    pass
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user