I want to restore the value from "rgbcolor" that was modified by the
procedure
Usually, postscript procedures are enclosed in {curly brackets}.
> 0 0 0 setrgbcolor
> save
> bla bla....
These types of discussion often work better with 'real' code.
Hypothetical questions get hypothetical answers.
> 0 1 1 setrgbcolor
> bla bla...
> restore
>
> I want to restore the value from "rgbcolor" that was modified by the
> procedure
currentrgbcolor will deposit three values on the stack which
you may 'restore' later using setrgbcolor.
If I interpret your intent correctly (of which I'm not sure),
you can stash data on the stack to retain across the restore.
0 0 0 setrgbcolor
save
bla bla....
0 1 1 setrgbcolor
bla bla...
currentrgbcolor
restore
setrgbcolor
I often use currentpoint and moveto this way, sandwiched around a
grestore.
--
luser