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.
1
transformpagecoords;
2
pagecoords:=identityscaled10mm shifted (5mm,5mm);
3
beginfig (1)
4
fill ((0,0)--(2,0)--(2,1)--(1,1)--(1,2)--(0,2)--cycle)
All prices listed are in United States Dollars (USD). Visual representations of products are intended for illustrative purposes. Actual products may exhibit variations in color, texture, or other characteristics inherent to the manufacturing process.