From 488d6e9cc938e0f683b3d45b61add77322e9d7b7 Mon Sep 17 00:00:00 2001 From: Diana Panarello Date: Tue, 2 Sep 2025 21:26:50 -0400 Subject: [PATCH] I experimented with the turtle command using the pensize, color, circle, set position, and text. This actually was theraputic for me. I enjoyed the trial and error aspect and experimenting with the program to get my shapes exactly where I wanted them to be. I wanted to experiment with adding text to the program, and it was interesting to see how the text was coded. --- drawing.py | 51 +++++++++++++++++++++++++++++++-------------------- 1 file changed, 31 insertions(+), 20 deletions(-) diff --git a/drawing.py b/drawing.py index 72ab56a..f5f3ee9 100644 --- a/drawing.py +++ b/drawing.py @@ -7,29 +7,40 @@ from turtle import ( pendown, color, write, - setposition + setposition, + circle, + goto, + fillcolor, + pensize ) -color('red') -right(45) -forward(100) -right(45) -forward(100) -right(45) -forward(100) -right(45) -forward(100) -right(45) -forward(100) -right(45) -forward(100) -right(45) -forward(100) -right(45) -forward(100) +pensize(10) +color('blue') +circle(50) penup() -setposition(-145,-160) +setposition(110,0) +pendown() +color('black') +circle(50) +penup() +setposition(220,0) +pendown() +color('red') +circle(50) +penup() +setposition(55,-60) +pendown() +color('yellow') +circle(50) +penup() +setposition(165,-60) +pendown() +color('green') +circle(50) +penup() +setposition(25,-140) +color('maroon') style = ('Times New Roman', 75, 'bold') -write('STOP', font=style) +write('USA!', font=style) input()