generated from mwc/project_drawing
I took the suggestion from Dr. Proctor, and I tried to make rectangles colored with red and blue.
This commit is contained in:
parent
c84103c084
commit
d36e3eb7a7
29
drawing.py
29
drawing.py
|
@ -1,7 +1,32 @@
|
|||
# drawing.py
|
||||
# ----------
|
||||
# By ____(you)___________
|
||||
# By Seoyeon___________
|
||||
#
|
||||
# (Briefly describe what this program does.)
|
||||
# (basic practice prior to yin-yang shape.)
|
||||
|
||||
from turtle import *
|
||||
color("black", "red")
|
||||
begin_fill()
|
||||
forward(40)
|
||||
right(90)
|
||||
forward(20)
|
||||
right(90)
|
||||
forward(40)
|
||||
right(90)
|
||||
forward(20)
|
||||
end_fill()
|
||||
|
||||
penup()
|
||||
backward(20)
|
||||
right(180)
|
||||
color("black","blue")
|
||||
begin_fill()
|
||||
forward(20)
|
||||
left(90)
|
||||
forward(40)
|
||||
left(90)
|
||||
forward(20)
|
||||
end_fill()
|
||||
|
||||
input()
|
||||
|
||||
|
|
Loading…
Reference in New Issue