PostScript Quick Reference
PostScript Quick Reference
0
Numercal operators
num1 num2 add sum num1 + num2
num1 num2 sub difference num1 - num2
num1 num2 mul product num1 * num2
num1 num2 div quotient num1 / num2
Stack operators
any pop - discard top element
any1 any2 exch any2 any1 exchange top two elements
any dup any any duplicate top element
1
Painting operators
- stroke - draw line along current path
- fill - fill path with current color
- erasepage - paint current page white
Control operators
init incr lim proc for - execute proc with values from init
by steps of incr to lim
int proc repeat - repeat proc int times