summaryrefslogtreecommitdiff
path: root/info/examples/lgc2/3-5-6.mp
blob: faeebf00f295f53bc7b744e5d5eb5933d8d32de1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
% --- start of displayed preamble in the book ---
input metaobj
% --- end of displayed preamble in the book ---
% graphic converted to gray in book using 'color2gray'
defaultfont:="ptmr8r";
warningcheck:=0;
beginfig(1)
newRandomBox.a(1cm,5mm,2mm,-1mm)
  "framed(true)",  "framewidth(1mm)",
  "framecolor(green)",
  "filled(true)",
  "fillcolor(red)";
a.c=origin; drawObj(a);
endfig;
end;