MetaPost Compiler

About the tool

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.

Demo

Input in the MetaPost language.
The log will be displayed here when compilation starts.
Any generated figures are displayed here.

See also

Made by Anton Vasetenkov.

If you want to say hi, you can reach me on LinkedIn or via email. If you like my work, you can support me by buying me a coffee.