diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..4a96c22 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +source .venv/bin/activate \ No newline at end of file diff --git a/drawing.py b/drawing.py index f3ee2e9..ff1dcb5 100644 --- a/drawing.py +++ b/drawing.py @@ -7,16 +7,20 @@ from turtle import ( pendown, color, ) +# +resolution = 10 +scale =2 -forward(100) -right(360 * 2 / 5) -forward(100) -right(360 * 2 / 5) -forward(100) -right(360 * 2 / 5) -forward(100) -right(360 * 2 / 5) -forward(100) -right(360 * 2 / 5) +def center(): + #penup() + left(90) + forward(resolution * 3.14159) + right(90) + #pendown() + +center() +for i in range(resolution): + forward(360/resolution * scale) + right(360/resolution) input() diff --git a/poetry.lock b/poetry.lock new file mode 100644 index 0000000..c0d8bd7 --- /dev/null +++ b/poetry.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Poetry 2.3.1 and should not be changed by hand. +package = [] + +[metadata] +lock-version = "2.1" +python-versions = ">=3.10,<4.0" +content-hash = "7b8fc01b274bd807fb00372bbc8e138330f15ae7978ed61e180f3b17ec076725"