Don't print this page. You can read it from the screen as you follow the steps.

Tutorial for Recursive Picture

  1. Find and execute the program recPic.dem.
  2. Select <Examples:face>.
  3. Select <Mode:Draw or Handin>. Select the circle for "n=base=1".
  4. Draw a face on the screen as follows:
  5. Draw a few faces in different orientations and different sizes.
  6. Clear the screen when you like by selecting <File:clear screen>.
  7. To try something else, select <Examples:recur1>.
  8. Select <Mode:Draw or Handin> and again be sure that the circle for "n=base=1" has been selected.
  9. Draw a few rectangles in different orientations, then clear the screen <File:clear screen>.
  10. Click in the circle for the button <nonbase> and draw a big copy of the "rectangle with arrows" (the right hand picture in point 7) by clicking the mouse as before -- have the top of the rectangle be close to the top of the screen about 1/2 of the width of the screen.
  11. Draw a smaller copy of the "rectangle with arrows" at the place to recurse -- the arrow "---> >---" specifies a "place to recurse".
  12. Draw a smaller copy of the "rectangle with arrows" at the new place to recurse.
  13. Repeat this process, drawing smaller and smaller copies.
  14. Eventually, you will want to stop. However, you do not want to leave a "place to recurse" "---> --->" without a figure. Therefore, select "n=base=1" and draw a rectangle at the smallest place to recurse.
  15. Clear the screen and click the button <n=2> and draw a figure.
  16. Click the button <n=3> and draw a figure.
  17. Click the button <n=4> and draw a figure. 
  18. Try other values of n.
  19. Now repeat the process with other recursive pictures.
  20. Repeat the process again with the other examples listed.
  21. You are now ready to create your own figure. Select <File:new base/nonbase>. Add lines, circles, and arcs to the base and the nonbase case figures and places to recurse to the nonbase case figure. Then select <File:Draw> to see the result. Read the help file for for further help.