Ok I have only a basic knowledge of PostScript, and need a guide to a certain function.
I need to do 4-5 basic shapes inside postscript, but not with normal commands as lineto and such, but preprogrammed (I hope I'm understood, I really don't know much about this filed)
Example:
I need to preprogram the square, writing:
x 0 rlineto
0 x rlineto
-x 0 rlineto
closepath
And then, when I need the square, I would write
20 square
and the square with 20 instead of X would show up.
Please tell me if this is possible and how, or point me to some reading about it.
It really seems simple but I just need a quick step-by-step guid
Thank you
I need to do 4-5 basic shapes inside postscript, but not with normal commands as lineto and such, but preprogrammed (I hope I'm understood, I really don't know much about this filed)
Example:
I need to preprogram the square, writing:
x 0 rlineto
0 x rlineto
-x 0 rlineto
closepath
And then, when I need the square, I would write
20 square
and the square with 20 instead of X would show up.
Please tell me if this is possible and how, or point me to some reading about it.
It really seems simple but I just need a quick step-by-step guid
Thank you