prologues := 3;
outputformat := "svg";
defaultfont := "cmr10";
defaultscale := 1.1;
color Blue,Teal,Orange,Green,Grey,Light,Wash;
Blue := (0,84/255,159/255); Teal := (0,177/255,183/255);
Orange := (246/255,168/255,0); Green := (87/255,171/255,39/255);
Grey := (100/255,101/255,103/255); Light := (236/255,236/255,237/255);
Wash := (232/255,241/255,250/255);
% Format displayed numbers to hundredths using integer strings.
vardef numlabel(expr value)=
 save n,whole,frac; numeric n,whole,frac;
 n:=round(100abs value); whole:=floor(n/100); frac:=n mod 100;
 (if value<-.005: "-" & fi decimal whole
  if frac>0: & "." & if frac<10: "0" & fi decimal frac fi)
enddef;
pickup pencircle scaled .9;
outputtemplate := "MPT-16-001.svg";
beginfig(1);
fill unitsquare xscaled 320 yscaled 220 withcolor white;
% BEGIN DRAWING
string capname[],joinname[];
capname[0]:="butt"; capname[1]:="rounded"; capname[2]:="squared";
joinname[0]:="mitered"; joinname[1]:="rounded"; joinname[2]:="beveled";
for k=0 upto 2:
  begingroup
    interim linecap:=k;
    draw (39+99k,155)--(82+99k,155)
      withpen pencircle scaled 13 withcolor Blue;
  endgroup;
  for x=39+99k,82+99k:
    draw (x,143)--(x,167) withpen pencircle scaled .6 withcolor Orange;
  endfor;
  label(capname[k] infont "cmr9",(60+99k,128));
  begingroup
    interim linejoin:=k;
    draw (35+99k,50)--(60+99k,94)--(85+99k,50)
      withpen pencircle scaled 13 withcolor Teal;
  endgroup;
  label(joinname[k] infont "cmr9",(60+99k,28));
endfor;
% END DRAWING
label.lft("MPT-16-001" infont "cmr8",(312,210));
setbounds currentpicture to unitsquare xscaled 320 yscaled 220;
endfig;
end.
