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-15-006.svg"; beginfig(1); fill unitsquare xscaled 320 yscaled 220 withcolor white; % BEGIN DRAWING vardef iso(expr x,y,z)=(160+34(x-y),52+17(x+y)+37z) enddef; path front,side,roofleft,roofright; front:=iso(0,0,0)--iso(2,0,0)--iso(2,0,1.7) --iso(1,0,2.55)--iso(0,0,1.7)--cycle; side:=iso(0,0,0)--iso(0,2,0)--iso(0,2,1.7)--iso(0,0,1.7)--cycle; roofleft:=iso(-.2,-.2,1.7)--iso(-.2,2.2,1.7) --iso(1,2.2,2.55)--iso(1,-.2,2.55)--cycle; roofright:=iso(1,-.2,2.55)--iso(1,2.2,2.55) --iso(2.2,2.2,1.7)--iso(2.2,-.2,1.7)--cycle; fill iso(-.5,-.5,0)--iso(3,-.5,0)--iso(3,2.7,0) --iso(-.5,2.7,0)--cycle withcolor Wash; fill side withcolor .55[Blue,white]; draw side withcolor Blue; fill front withcolor .87[Blue,white]; draw front withcolor Blue; fill iso(.7,0,0)--iso(1.2,0,0)--iso(1.2,0,1.15) --iso(.7,0,1.15)--cycle withcolor Blue; fill iso(0,.55,.65)--iso(0,1.35,.65)--iso(0,1.35,1.25) --iso(0,.55,1.25)--cycle withcolor .35[Teal,white]; draw iso(0,.95,.65)--iso(0,.95,1.25) withcolor Blue; fill roofleft withcolor .45[Orange,white]; draw roofleft withcolor Blue; fill roofright withcolor Orange; draw roofright withcolor Blue; draw iso(1,-.2,2.55)--iso(1,2.2,2.55) withpen pencircle scaled 1.5 withcolor Blue; % END DRAWING label.lft("MPT-15-006" infont "cmr8",(312,210)); setbounds currentpicture to unitsquare xscaled 320 yscaled 220; endfig; end.