[metapost] `withprescript' writing order
Taco Hoekwater
taco at elvenkind.com
Thu Dec 27 10:54:43 CET 2007
Lander wrote:
> The `.setopacityalpha' operator comes before `gsave' in the
> output file, but my intention is the other way round (just
> to alter the graphics state for the first circle). I wonder
> whether this is a deliberate behaviour as intended by the
> developers: because it is a "prescript", it may make sense
> that LIFO writing order. I find it a bit awkward, though;
I think I did that on purpose, because "picture"s can also have
their own pre- and postscripts, as well as the pre- and posts
of their constituent parts, and I had to resolve that case.
The "withpostscript" is FIFO.
> perhaps it is worth adding a line to the manual, as a
> clarification.
I agree.
Best wishes,
Taco
More information about the metapost
mailing list