CS 3723/3721
Programming Languages

Postscript

 

Introduction:
         Postscript is a 2-dimensional page description language.

References and Access:
         The best reference is The "Blue" Book

Variables & Procedures
         Simple procedure definitions, taken from Forth

Example of Overlapping Boxes
         Handling parameters

Right Justifying Text
         Using stringwidth

Practice with Graphics:
         Intuition about translate, rotate, and scale

The star Example:
         Use rotate and translate to draw a five-pointed star.

Paths and Clipping Paths (+ Colors)
         68 color definitions

Cascading Rings of Boxes
         Complete project implementation

Rotor Puzzle Stuff
         Weird recursive figure of arbitrary complexity

Complex Examples:
         Also see The "Blue" Book

Additional Complex Examples
         Some crazy pictures


Homework
         Five Postscript programs to work on

 

( Revision date: 2015-01-03. Use the ISO 8601 standard.)