[metapost] Using a color repeatedly

Hans Hagen pragma at wxs.nl
Wed Aug 8 10:02:04 CEST 2012


On 8-8-2012 08:41, Shriramana Sharma wrote:
> Hello.
>
> Please forgive if I have overlooked something obvious but apparently I can't do:
>
> pickup pencircle withcolor blue ;
>
> So if I have to do multiple draw/fill operations using a colour, what
> am I to do? Appending withcolor blue to each statement is not very
> nice to read.

in addition to drawoptions (that need to be reset aftwards) this is also 
an option:

draw image (
	draw fullcircle scaled 1cm ;
	draw fullcircle scaled 2cm ;
) withcolor blue ;

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the metapost mailing list