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"