I worked to make what looks similar to a

directional pad, which is often referred to as a D-pad.

This was a struggling first step, and I will admit that I reached out for significant help to get this
process started. Instead of trying to reinvent the wheel, I looked up some starter code to get a start and
worked backwards from there in order to understand it fully and do what I wanted it to. Additionally,
it allowed me to experiment with a color fill that I wanted. My next step involves potentially creating a
function that will clean up the actual drawing process and reduce the number of steps.
This commit is contained in:
Justin Toombs 2023-07-23 18:13:07 -04:00
parent 3d1cc72e3d
commit 5dea44d02f
2 changed files with 25 additions and 6 deletions

View File

@ -5,3 +5,22 @@
# (Briefly describe what this program does.)
from turtle import *
import turtle
screen = turtle.Screen()
screen.setup(1000,1000)
turtle.color('blue')
turtle.up()
turtle.goto(-450,-150)
turtle.down()
turtle.begin_fill()
for _ in range(4):
turtle.fd(300)
turtle.right(90)
turtle.fd(300)
turtle.left(90)
turtle.fd(300)
turtle.left(90)
turtle.end_fill()
done()

12
poetry.lock generated
View File

@ -42,13 +42,13 @@ lxml = ["lxml"]
[[package]]
name = "certifi"
version = "2023.5.7"
version = "2023.7.22"
description = "Python package for providing Mozilla's CA Bundle."
optional = false
python-versions = ">=3.6"
files = [
{file = "certifi-2023.5.7-py3-none-any.whl", hash = "sha256:c6c2e98f5c7869efca1f8916fed228dd91539f9f1b444c314c06eef02980c716"},
{file = "certifi-2023.5.7.tar.gz", hash = "sha256:0f0d56dc5a6ad56fd4ba36484d6cc34451e1c6548c61daad8c320169f91eddc7"},
{file = "certifi-2023.7.22-py3-none-any.whl", hash = "sha256:92d6037539857d8206b8f6ae472e8b77db8058fec5937a1ef3f54304089edbb9"},
{file = "certifi-2023.7.22.tar.gz", hash = "sha256:539cc1d13202e33ca466e88b2807e29f4c13049d6d87031a3c110744495cb082"},
]
[[package]]
@ -497,13 +497,13 @@ sphinx = ">=7.0.1,<8.0.0"
[[package]]
name = "urllib3"
version = "2.0.3"
version = "2.0.4"
description = "HTTP library with thread-safe connection pooling, file post, and more."
optional = false
python-versions = ">=3.7"
files = [
{file = "urllib3-2.0.3-py3-none-any.whl", hash = "sha256:48e7fafa40319d358848e1bc6809b208340fafe2096f1725d05d67443d0483d1"},
{file = "urllib3-2.0.3.tar.gz", hash = "sha256:bee28b5e56addb8226c96f7f13ac28cb4c301dd5ea8a6ca179c0b9835e032825"},
{file = "urllib3-2.0.4-py3-none-any.whl", hash = "sha256:de7df1803967d2c2a98e4b11bb7d6bd9210474c46e8a0401514e3a42a75ebde4"},
{file = "urllib3-2.0.4.tar.gz", hash = "sha256:8d22f86aae8ef5e410d4f539fde9ce6b2113a001bb4d189e0aed70642d602b11"},
]
[package.extras]