From 126887cb8e3371f4297d2b0dd432f9451d1e65ed Mon Sep 17 00:00:00 2001 From: rrahmany Date: Fri, 24 Oct 2025 10:10:18 -0400 Subject: [PATCH] updated drawing.py --- drawing.py | 22 ++++++++++++++++++++++ poetry.lock | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/drawing.py b/drawing.py index 29fc89e..313737d 100644 --- a/drawing.py +++ b/drawing.py @@ -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) + diff --git a/poetry.lock b/poetry.lock index 4e0e63c..8f7f129 100644 --- a/poetry.lock +++ b/poetry.lock @@ -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"