Compare commits

...

2 Commits

Author SHA1 Message Date
root 67f3e0cb61 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. -_-
2024-09-20 00:58:57 -04:00
root 801ba8edbf I finished the function for drawing the letter A.
I am frustrated that my commit messages keep failing to save and I have
to keep rewriting them.
First I wrote the function and it was very long. Then, I made functions
for the eyes and ghosty skirt, since I will use them in other letters.
I feel like I should use loops but I don't want to mess up my letter.
I tried one way, and it didn't work, so I think I will try for the
letter B and then go back and change A as needed.
2024-09-19 23:36:19 -04:00
1 changed files with 99 additions and 2 deletions

View File

@ -11,12 +11,109 @@
from turtle import *
from math import sqrt
from math import asin
from math import pi
def draw_eye(unit):
right(45)
pendown()
fillcolor('black')
begin_fill()
circle(unit/2, 90)
circle(unit/12, 90)
circle(unit/2, 90)
circle(unit/12, 90)
end_fill()
penup()
left(45)
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)
circle(unit/4, 180)
circle(-unit/4, 180)
circle(unit/4, 180)
circle(-unit/4, 180)
def draw_letter_a(unit):
pass
penup()
forward(unit)
left(90)
forward(unit/4)
pendown()
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_type_a(unit)
penup()
forward(15*unit/4)
right(90)
forward(3*unit)
pendown()
circle(unit)
penup()
circle(unit, 90)
forward(5*unit/4)
draw_eye(unit)
left(90)
forward(2*unit)
draw_eye(-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