generated from mwc/lab_turtle
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.
47 lines
591 B
Python
47 lines
591 B
Python
from turtle import (
|
|
forward,
|
|
back,
|
|
left,
|
|
right,
|
|
penup,
|
|
pendown,
|
|
color,
|
|
write,
|
|
setposition,
|
|
circle,
|
|
goto,
|
|
fillcolor,
|
|
pensize
|
|
)
|
|
|
|
pensize(10)
|
|
color('blue')
|
|
circle(50)
|
|
penup()
|
|
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('USA!', font=style)
|
|
|
|
input()
|