summaryrefslogtreecommitdiff
path: root/info/drawing-with-metapost/src/eggs-super.mp
blob: 89f8dda5b4cd774363a9eb4d060b92a205f72e59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
\documentclass{standalone}
\usepackage{luamplib}
\mplibtextextlabel{enable}
\begin{document}
\begin{mplibcode}
path egg;
egg = (superellipse(right, 1.6 up, left, 1.2 down, 0.69)) scaled 100;
input eggs-common
beginfig(1);
    fill egg withpen pencircle scaled 2 withcolor eggshell;
    picture P; P = currentpicture;
    drawoptions(withcolor 1/2);
    draw origin withpen pencircle scaled 2;
    draw egg withpen pencircle scaled 1/4;
    drawoptions();
    draw numbered_points(egg) withpen pencircle scaled 2;
    draw P shifted 240 right;
endfig;
\end{mplibcode}
\end{document}