Debian Codegraph @

texmf-dist/doc/metapost/base/source-tutorial/paperclip.mp

raw
1 prologues:=3;
2
3 if scantokens(mpversion) > 1.005:
4 outputtemplate :=
5 else:
6 filenametemplate
7 fi
8 "%j.mps";
9
10 beginfig(0);
11 path p;
12 p := (0,3/16)
13 --(halfcircle rotated 180 scaled (1/4) shifted (1/8,-1/4))
14 --(halfcircle scaled (3/8) shifted (1/16,3/8))
15 --(halfcircle rotated 180 scaled (1/2) shifted (1/8,-1/2))
16 --(3/8,3/16);
17 draw p scaled 18 withpen pencircle scaled 1.25bp
18 withcolor (0.5985,0.7712,0.4275);
19 % For the color specification cf. mpintro.ltx:
20 % (0.5985, 0.7712, 0.4275) = mpcolor!90!black
21 % with mpcolor being defined as
22 % \colorlet{mpcolor}{Chartreuse3!50!white!95!black}
23 % and Chartreuse3 = (0.4, 0.804, 0)
24 endfig;
25 end