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!
This commit is contained in:
mbhatti4
2025-09-01 00:21:54 -04:00
parent 52e05c4d03
commit ffa0fb6fc6

View File

@@ -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()