Masleff Graphics
PRT # / Keyword

MetaPost Compiler

MetaPost is a programming language for creating graphics. It is based on Donald Knuth's Metafont language for typesetting.

To generate figures using MetaPost, you typically write a program in the MetaPost language and then compile it using the MetaPost compiler. The compiler generates SVG or PostScript files.

This tool allows you to compile MetaPost code online. Simply write your MetaPost code in the input box below and click the "Compile" button. The generated SVGs will be displayed below the input box.

Input (MetaPost code)
Input in the MetaPost language.
Log
The log will be displayed here when compilation starts.
Generated figures
Any generated figures are displayed here.
MetaPost Compiler
MetaPost Compiler