Debian Codegraph @

texmf-dist/doc/metapost/featpost/example/telemira.mp

raw
1 pair thecenter;
2 thecenter = (105mm,150mm);
3
4 vardef instructio( expr rayc ) =
5 draw fullcircle scaled rayc shifted thecenter
6 enddef;
7
8 beginfig(1);
9 numeric i, u, maxray;
10 u = 1mm;
11 maxray = 85u;
12 for i=30u step 1u until 40u:
13 instructio( i );
14 endfor;
15 for i=153u step 1u until 165u:
16 instructio( i );
17 endfor;
18 for i=0 step 90 until 270:
19 draw thecenter--(thecenter+maxray*dir(i));
20 endfor;
21 endfig;
22 end.