summaryrefslogtreecommitdiff
path: root/info/examples/lgc2/3-5-33.mp
blob: 2e344bafd86bf214ac7c12c3959ee3fb072a3057 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
% --- start of displayed preamble in the book ---
input metaobj
% Circles produced as before

% --- end of displayed preamble in the book ---

  newCircle.a(btex start etex);
  newCircle.b(btex end etex);
  a.c=origin;
  b.c-a.c=(3cm,1cm);

defaultfont:="ptmr8r";
warningcheck:=0;
beginfig(1)
nczigzag(a)(b);
nczigzag(a)(b)
  "angleA(-90)","angleB(120)",
  "linetension(0.8)", "coilwidth(2mm)",
  "linearc(.1mm)";
drawObj(a,b);
endfig;
end;