From ffa0fb6fc699c0ba22314f222c80a8b7ee89580c Mon Sep 17 00:00:00 2001 From: mbhatti4 Date: Mon, 1 Sep 2025 00:21:54 -0400 Subject: [PATCH] Experimented with turtle using the extra commands I originally only used the basic few commands provided, but then discovered the extra commands and did more with my code to use them. Using more of the extra commands made the assignment more fun! --- drawing.py | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/drawing.py b/drawing.py index 8a805d4..9b9413d 100644 --- a/drawing.py +++ b/drawing.py @@ -5,9 +5,28 @@ from turtle import ( right, penup, pendown, + pensize, + speed, color, + begin_fill, + end_fill, + fillcolor, + ) +penup() +back(100) +right(270) +forward(100) + +right(90) + +pendown() + +begin_fill() + +pensize(5) +speed(2) color("red") forward(200) right(90) @@ -19,6 +38,10 @@ forward(200) right(90) color("green") forward(200) + +fillcolor("misty rose") +end_fill() + right(135) color("blue") forward(282.8) @@ -29,6 +52,20 @@ right(135) color("purple") forward(282.8) +color("black") +penup() +forward(30) +pendown() +right(135) +forward(240) +right(90) +forward(240) +right(90) +forward(240) +right(90) +forward(240) + + input()