Goals
Create graphics using recursion.
Learn about recursion.
Learn about the PostScript programming language (a stack-based language).
Checklist
You should use the following submit command:
/u/cs126/bin/submit 5 readme htree.c htree3.ps myprog.c picture.ps
. You may rename
myprog.c
appropriately if you like. Do
not
submit any (PostScript) files larger than 1MB. (If you're unsure, use
ls -l
to list the files along with their size.) Such files will be discarded and you will receive a 5 point penalty. (Sorry, CIT only allocates us a limited amount of space and if it fills up, nobody else will be able to submit their assignments.)
This assignment should be enjoyable and not nearly as difficult as the last one!
Please take a minute and fill out our
mid-semester feedback form
. Your input is greatly appreciated!
readme
name, precept number
description of problems encountered and high level description of code
description of your artistic creation and how you went about creating it
do not include any PostScript in readme file
executing and viewing
type
a.out > picture.ps
to redirect the output to a file; type
gs picture.ps
to view; if you get an error when trying to view, then your probably made a mistake with the PostScript syntax
htree.c
you should enjoy this one
myprog.c
we'll deduct if your picture is overly boring and too similar to
htree.c
extra.c
combine the two main concepts you have been using and write a recursive PostScript program!
or "un-recursify" your program
Other Sources
Check out the PostScript section of the
COS 126 FAQ List
for more information.