summaryrefslogtreecommitdiff
path: root/info/examples/lgc2/4-1-7.mp
blob: 6a4153d98aee8e9add8b7ad08d9a32672c2a3518 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
% --- start of displayed preamble in the book ---
def square=(unitsquare scaled 5mm) enddef;
% --- end of displayed preamble in the book ---
defaultfont:="ptmr8r";
warningcheck:=0;
beginfig(1)
for i=0 upto 4:
  for j=0 upto 4:
    draw square shifted (i*6mm,j*6mm);
  endfor;
endfor;
endfig;
end;