Files
lab_turtle/drawing.py
mbhatti4 ffa0fb6fc6 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!
2025-09-01 00:21:54 -04:00

72 lines
724 B
Python

from turtle import (
forward,
back,
left,
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)
color("orange")
forward(200)
right(90)
color("yellow")
forward(200)
right(90)
color("green")
forward(200)
fillcolor("misty rose")
end_fill()
right(135)
color("blue")
forward(282.8)
right(135)
color("yellow")
forward(200)
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()