Changes

Jump to navigation Jump to search
743 bytes added ,  09:50, 12 September 2009
Using MP in ConTeXt
=== 3D drawing ===
* [http://asymptote.sourceforge.net/ Asymptote] - inspired by MetaPost & fully generalizes MetaPost path construction algorithms to three-dimensions
 
== Using MP in ConTeXt ==
The first way is a usable graphic. Such a graphic is calculated anew each time it is used. An example:
 
<texcode>
\startuseMPgraphic{name}
fill fullcircle scaled 5cm withcolor red;
\stopuseMPgraphic
 
\useMPgraphic{name}
</texcode>
 
As said, this graphic is calculated each time it is placed, which can be time consuming. Apart from the time aspect, this also means that the graphic itself is incorporated many times. Therefore, for graphics that don’t change, CONTEXT provides reusable graphics:
 
<texcode>
\startreusableMPgraphic{name}
fill fullcircle scaled 200pt withcolor .625yellow;
\stopreusableMPgraphic
 
\reuseMPgraphic{name}
</texcode>
 
See also section 3.3 of [[manual:metafun-s.pdf|MetaFun manual]].
== Other Links ==
* http://melusine.eu.org/syracuse/metapost/
 
[[Category:Graphics]]
[[Category:Metapost]]
128

edits

Navigation menu