Difference between revisions of "Command/reuseMPgraphic"

From Wiki
Jump to navigation Jump to search
(Add better example)
Line 3: Line 3:
== [[Help:Reference|Syntax]] (autogenerated) ==
== [[Help:Reference|Syntax]] ==
== [[Help:Reference|Syntax]] ==

Latest revision as of 14:37, 15 November 2019


Syntax (autogenerated)



{...} name under which the graphic will be known


Reuse a MetaPost graphic that was defined with \startreusableMPgraphic.



  fill fullcircle scaled 20pt withcolor \mycolor;

red: \reuseMPgraphic{name}

blue: \reuseMPgraphic{name}

The \reuseMPgraphic command can be used to define overlays:

	fill unitsquare
		xyscaled (\overlaywidth, \overlayheight)
                % `uniformdeviate 1 produces a random number between 0 and 1`
		withcolor (uniformdeviate 1, uniformdeviate 1, uniformdeviate 1);


\framed[background=beta]{rather wide}

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: