Reviews
Review functions:
What is a function? Template for actions
- rect(x, y, width, height)
- circle(x, y, diameter)
- drawNose(x1, y1, x2, y2, x3, y3)
- drawFace(x, y, width, height)
Why functions?
- Organization → Modularity
- Reusability → Portability
Tip
Assignment review:
What kind of functions did you make in your assignment?
- Drawing function? Moving function? With or without arguments? Return function?
Did you make truly portable functions in your code?