generated from mwc/project_drawing
I changed my README.md file.
- There is nothing to reflect on as I have not added anything.
This commit is contained in:
27
drawing.py
27
drawing.py
@@ -14,10 +14,12 @@ def fly(forw):
|
||||
|
||||
def rectangle(height,width,col):
|
||||
dimensions = [width, height, width, height]
|
||||
color(col)
|
||||
fillcolor(col)
|
||||
begin_fill()
|
||||
for dim in dimensions:
|
||||
forward(dim)
|
||||
left(90)
|
||||
end_fill()
|
||||
|
||||
|
||||
def triangle_facing_right(height,col):
|
||||
@@ -49,34 +51,45 @@ def circ(radius):
|
||||
circle(radius,360) #found in section 1 link of Typeface Problem set instructions
|
||||
|
||||
|
||||
rectangle(250,150,"black") #this is the torso
|
||||
|
||||
rectangle(250,150,"red") #this is the torso
|
||||
right(90)
|
||||
fly(150)
|
||||
left(90)
|
||||
rectangle(150,50,"black") #this is the left leg
|
||||
rectangle(150,50,"blue") #this is the left leg
|
||||
fly(100)
|
||||
rectangle(150,50,"black") #this is the right leg
|
||||
rectangle(150,50,"blue") #this is the right leg
|
||||
fly(50)
|
||||
left(90)
|
||||
fly(350)
|
||||
right(180)
|
||||
rectangle(150,50,"black") #this is right arm
|
||||
rectangle(150,50,"red") #this is right arm
|
||||
right(90)
|
||||
fly(300)
|
||||
left(90)
|
||||
rectangle(150,50,"black") #this is left arm
|
||||
rectangle(150,50,"red") #this is left arm
|
||||
right(180)
|
||||
fly(50)
|
||||
right(90)
|
||||
fly(230)
|
||||
left(90)
|
||||
rectangle(10,30,"black") #this is the neck
|
||||
rectangle(10,30,"white") #this is the neck
|
||||
left(90)
|
||||
fly(5)
|
||||
right(90)
|
||||
fly(30)
|
||||
right(90)
|
||||
circ(35) #this is the head
|
||||
left(90)
|
||||
fly(50)
|
||||
left(90)
|
||||
fly(10)
|
||||
right(180)
|
||||
circ(5)
|
||||
fly(25)
|
||||
circ(5)
|
||||
|
||||
|
||||
input()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user