Created The Letter "U"using code

This commit is contained in:
klinn
2026-02-26 10:42:03 -05:00
parent 5e72031438
commit a747af1cbf
3 changed files with 79 additions and 1 deletions

1
.envrc Normal file
View File

@@ -0,0 +1 @@
source .venv/bin/activate

18
poetry.lock generated Normal file
View File

@@ -0,0 +1,18 @@
# This file is automatically @generated by Poetry 2.3.1 and should not be changed by hand.
[[package]]
name = "superturtle"
version = "0.2.0"
description = "Extensions to Python's turtle"
optional = false
python-versions = "<4.0,>=3.9"
groups = ["main"]
files = [
{file = "superturtle-0.2.0-py3-none-any.whl", hash = "sha256:ca3a31be3259387b4490846adbf64502acc9d23472912cc43497ab170e89f506"},
{file = "superturtle-0.2.0.tar.gz", hash = "sha256:807fb419c1dba9cb809a22a68e72c0193bdeed4a9326eb36ad940b2a7ff6ac04"},
]
[metadata]
lock-version = "2.1"
python-versions = ">=3.10,<4.0"
content-hash = "6aad436bbbf760fa856344262eab22d62a167cac4e5dfefbf4be77d5a37428c9"

View File

@@ -73,8 +73,67 @@ def draw_letter_t(unit):
pass
def draw_letter_u(unit):
pass
penup()
left(90)
forward(unit*1)
right(90)
forward(unit*3)
pendown()
forward(unit*2)
left(45)
forward(unit*2)
left(45)
forward(unit*5)
penup()
left(90)
forward(unit*5)
pendown()
left(90)
forward(unit*5)
left(45)
forward(unit*2)
left(45)
forward(unit/2.7)
penup()
left(90)
forward(unit/2)
pendown()
right(90)
forward(unit*2/1.2)
left(45)
forward(unit*1/1.2)
forward(unit*1/1.2)
left(45)
forward(unit*5/1.2)
penup()
left(90)
forward(unit*5/1.2)
pendown()
left(90)
forward(unit*5/1.2)
left(45)
forward(unit*1/1.2)
forward(unit*1/1.2)
left(45)
forward(unit*1/1.2)
penup()
right(90)
forward(unit*1.5)
right(90)
forward(unit*4)
right(180)
def draw_letter_v(unit):
pass