25 Dec
2005
25 Dec
'05
7:52 a.m.
Hans van der Meer wrote:
Normally metapost/metafun starts out drawing in black.
Is it possible to change this globally, so that "withcolor xyz" is not needed everytime another color is wanted?
Also is it possible to "get/save/restore" the current drawing color (a la savepen) in metapost/metafun?
I searched through various manuals but I might have missed the reference.
not precisely, but drawoptions() comes close. beginfig(1); drawoptions(withcolor red); fill unitsquare scaled 20; drawoptions(); fill unitsquare scaled 10; endfig; Cheers, Taco