summaryrefslogtreecommitdiff
path: root/info/drawing-with-metapost/src/torn-edge-straight.mp
blob: 18a365c4c2aa9779625a4ab1093ed091fc1a8fb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
\documentclass{standalone}
\usepackage{luamplib}
\begin{document}
\begin{mplibcode}
input torn-edge
beginfig(2);
path t; numeric x, y; 
x = 0; y=0; 
t = (x, -20) -- (x, y) for i=1 upto 288: -- (incr x, walkr y) endfor -- (x, -20) -- cycle;
fill t withcolor 1/32(32,32,31);
draw t withcolor .67 blue;
endfig;
\end{mplibcode}
\end{document}