1. Watch video "08 Create a Drawing". Create a Sandbox Project and call it "Python Drawing 2020". Follow the directions from the video and write the drawPolygon() function in your code.
2. Watch video "08b How to submit your project" for directions on how to turn in your work. Submit you Link to the project to the Google Classroom. Do this before you start working on the project. As you add code to the project, the link will automatically update. This link is due on Tuesday, July 14th by 5:00 PM.
3. Watch video "08a Drawing Demonstration" for a demonstration of a drawing project from draft to code.
4. Create a rough drawing of your project idea on paper or in a computer drawing program. Label the objects in the drawing and develop names for functions needed for the Python version of the drawing.
5. Go to your Sandbox project "Python Drawing 2020" and implement the functions to draw the elements of your art. The finished code is due by Monday, July 20th at 5:00 PM.
Requirements:
A. Use at least 5 different colors
B. Use at least 4 different shapes (squares, triangles, hexagons, other shapes . . .)
C. Have at least 3 functions (drawSquare, drawPolygon, drawFish . . .)
D. Use at least 3 comments to describe the code (Use the # for comments)
Resource: drawPolygon() Function:
# Define the drawPolygon()
def drawPolygon(x, y, size, sides, penColor):
penup()
setposition(x, y)
pendown()
color(penColor)
for i in range(sides):
forward(size)
angle = 360/sides
left(angle)
Resource: goto(x, y) function:
# goto function
def goto(x, y):
penup()
setposition(x, y)
pendown()
Resource: drawRectangle() function:
# Draw Rectangle
def drawRectangle(x, y, width, height, penColor):
goto(x, y)
color(penColor)
begin_fill()
for i in range(2):
forward(width)
left(90)
forward(height)
left(90)
end_fill()