This week we explore vector graphics in two dimensions, using the fabulous Postscript language. Your task - should you choose to accept it - is to exploit the 36 inch printer (at 600 dpi, that's 20k by 20k pixels) in CEC with your own artistic expression. You may want to explore fractals and L-systems - or other detailed mathematical contructions. (Trees aren't the only thing L-systems are good for - what about machines?) Or print a mile-long maze. Have fun. This tarfile contains example code and scripts for working with Postscript under Linux. You'll probably also need access to the Postscript manual. | |
Draw a box. Rotate the coordinate system. Scale by 90%. Repeat. | The function Tree recursively calls itself, each time scaling and rotating its coordinate system. |