Lab 02: Graphics + Recursion = Fractals
Outline
- Announcements
- Lab 02 Suggestions
- Small group work
Announcements
- Accountability group survey
- First quiz this week
- topic will be recursion
- conceptual question
- related to Wednesday lecture material
A Closer Look
Notes on Overlap
- Drawing commands executed in order
- New drawings on top of old:
drawSquareA();
drawSquareB();
Code above will show square B in foreground (if squares A and B overlap)
Difference Between Images
Recursion Depth
Draw picture to depth 0, 1, 2
Look at the Code
- Keep track of current depth
- Compiling with command line
- What happens with infinite loop?