summaryrefslogtreecommitdiff
path: root/info/drawing-with-metapost/src/pens-highway.mp
diff options
context:
space:
mode:
Diffstat (limited to 'info/drawing-with-metapost/src/pens-highway.mp')
-rw-r--r--info/drawing-with-metapost/src/pens-highway.mp15
1 files changed, 15 insertions, 0 deletions
diff --git a/info/drawing-with-metapost/src/pens-highway.mp b/info/drawing-with-metapost/src/pens-highway.mp
new file mode 100644
index 0000000000..dab8aaf397
--- /dev/null
+++ b/info/drawing-with-metapost/src/pens-highway.mp
@@ -0,0 +1,15 @@
+\documentclass[border=5mm]{standalone}
+\usepackage{luamplib}
+\begin{document}
+\mplibtextextlabel{enable}
+\begin{mplibcode}
+path S; S = origin .. 100 right {down} .. origin .. 100 left {down} .. cycle;
+beginfig(1);
+draw S withpen pencircle scaled 6;
+draw S withpen pencircle scaled 5 withcolor 1/2[red, green] * 2;
+draw S withpen pencircle scaled 4.5;
+draw S dashed evenly scaled 1/2 withcolor white;
+endfig;
+\end{mplibcode}
+\end{document}
+