generated from mwc/problemset_typeface
I made B, and I made A less wide so that it matched, because B
looked weird being so wide, and also there is probably supposed to be one unit left empty on either side of the letters for spacing. I feel like there is probably a better way to manage this. I figured that I would try to make B before fixing the loop thing with the ghosty skirt, so that I could see what was annoying. B was a weirder shape, so I had to make part of the skirt shrunken to match up with the sides. Also, when I made A less wide, I had to change the width of the skirt, but I didn't want to mess up B, so now I have two different ghosty skirt functions, which seems unnecessary. I figured out why my work didn't save for the few last assignments and why my commit messages haven't been saving. I copied this^ one just in case it happened again. I started putting the '#' in front of the things I've been typing sometimes because I thought we should because it's just a message and not code but then I realized that it doesn't look like I made any changes and then the git commit aborts, and it doesn't finish the mwc submit either. -_-
This commit is contained in:
parent
801ba8edbf
commit
67f3e0cb61
68
typeface.py
68
typeface.py
|
@ -11,6 +11,8 @@
|
|||
|
||||
from turtle import *
|
||||
from math import sqrt
|
||||
from math import asin
|
||||
from math import pi
|
||||
|
||||
def draw_eye(unit):
|
||||
right(45)
|
||||
|
@ -25,7 +27,14 @@ def draw_eye(unit):
|
|||
penup()
|
||||
left(45)
|
||||
|
||||
def draw_ghostyskirt(unit):
|
||||
def draw_ghostyskirt_type_a(unit):
|
||||
circle(-unit/4, 180)
|
||||
circle(unit/4, 180)
|
||||
circle(-unit/4, 180)
|
||||
circle(unit/4, 180)
|
||||
circle(-unit/4, 180)
|
||||
|
||||
def draw_ghostyskirt_type_b(unit):
|
||||
circle(-unit/4, 180)
|
||||
circle(unit/4, 180)
|
||||
circle(-unit/4, 180)
|
||||
|
@ -35,22 +44,23 @@ def draw_ghostyskirt(unit):
|
|||
circle(-unit/4, 180)
|
||||
|
||||
def draw_letter_a(unit):
|
||||
left(90)
|
||||
penup()
|
||||
forward(unit)
|
||||
left(90)
|
||||
forward(unit/4)
|
||||
pendown()
|
||||
forward(15*unit/4)
|
||||
circle(-4*unit, 180)
|
||||
forward(15*unit/4)
|
||||
draw_ghostyskirt(unit)
|
||||
forward(19*unit/4)
|
||||
circle(-3*unit, 180)
|
||||
forward(19*unit/4)
|
||||
draw_ghostyskirt_type_a(unit)
|
||||
forward(2*unit)
|
||||
circle(unit/2, 180)
|
||||
forward(2*unit)
|
||||
draw_ghostyskirt(unit)
|
||||
draw_ghostyskirt_type_a(unit)
|
||||
penup()
|
||||
forward(15*unit/4)
|
||||
right(90)
|
||||
forward(4*unit)
|
||||
forward(3*unit)
|
||||
pendown()
|
||||
circle(unit)
|
||||
penup()
|
||||
|
@ -63,7 +73,47 @@ def draw_letter_a(unit):
|
|||
|
||||
|
||||
def draw_letter_b(unit):
|
||||
pass
|
||||
penup()
|
||||
forward(unit)
|
||||
left(90)
|
||||
forward(unit/4)
|
||||
pendown()
|
||||
forward(23*unit/4)
|
||||
circle(-2*unit, 90)
|
||||
forward(2*unit)
|
||||
circle(-2*unit, 180)
|
||||
right(180)
|
||||
circle(-2*unit, 135)
|
||||
left(45)
|
||||
forward(2*sqrt(2)*unit/8)
|
||||
draw_ghostyskirt_type_b(unit)
|
||||
circle(.95*unit/4, 180)
|
||||
circle(-.95*unit/4, 180)
|
||||
circle(.95*unit/4, 180)
|
||||
circle(-.95*unit/4, 180)
|
||||
penup()
|
||||
forward(4.5*unit)
|
||||
right(90)
|
||||
forward(3*unit)
|
||||
pendown()
|
||||
circle(unit)
|
||||
right(90)
|
||||
penup()
|
||||
forward(3.5*unit)
|
||||
left(90)
|
||||
pendown()
|
||||
circle(unit)
|
||||
penup()
|
||||
left(90)
|
||||
forward(5.5*unit)
|
||||
right(90)
|
||||
forward(unit)
|
||||
left(90)
|
||||
draw_eye(unit)
|
||||
left(90)
|
||||
forward(2*unit)
|
||||
draw_eye(-unit)
|
||||
|
||||
|
||||
def draw_letter_c(unit):
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue