updated drawing.py

This commit is contained in:
rrahmany
2025-10-24 10:10:18 -04:00
parent 3cc32f8ce4
commit 126887cb8e
2 changed files with 23 additions and 1 deletions

View File

@@ -5,3 +5,25 @@
# (Briefly describe what this program does.)
from turtle import *
from superturtle.image import save_svg
def draw_circle (radius):
penup()
right(90)
forward(radius*3)
pendown()
circle(radius)
width, height = 816, 1056
with save_svg(width, height, "drawing.svg"):
circles=[90,80,75,70,65,80,55,50,45,40,35,30,25,20,15,10,8,6,4,2,1]
left(90)
penup()
forward(200)
pendown()
for i in circles:
draw_circle (i)

2
poetry.lock generated
View File

@@ -1,4 +1,4 @@
# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand.
# This file is automatically @generated by Poetry 2.2.0 and should not be changed by hand.
[[package]]
name = "superturtle"