Changes

Jump to navigation Jump to search
33 bytes added ,  13:18, 26 November 2012
m
Add source=yes
With {{cmd|startuseMPgraphic}}, you define a piece of graphics code that is processed anew every time the graphic is placed with {{cmd|useMPgraphic}}.
<contextsource=yes>
\def\mycolor{.625red}
For graphics that are the same every time, it is better to use {{cmd|startreuseableMPgraphic}}: the graphic is compiled only once, and the one resulting picture can be placed at various points with {{cmd|reuseMPgraphic}}.
<contextsource=yes>
\def\mycolor{.625red}
When reusing a graphic is not important, you can simply use {{cmd|startMPcode}}.
<contextsource=yes>
\startMPcode
fill fullcircle scaled 20pt withcolor .625green;

Navigation menu