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-17-003.svg"; beginfig(1); fill unitsquare xscaled 320 yscaled 220 withcolor white; % BEGIN DRAWING path p; numeric a,r; pair c; c:=(160,109); for phase=0 step 30 until 330: for j=0 upto 359: a:=j; r:=76+9sind(12a+phase); if j=0: p:=c+r*dir(a); else: p:=p--(c+r*dir(a)); fi; endfor; draw p--cycle withpen pencircle scaled .35 withcolor (phase/440)[Blue,Teal]; endfor; draw fullcircle scaled 130 shifted c withcolor Blue; draw fullcircle scaled 176 shifted c withcolor Blue; label("MP" infont "cmbx10" scaled 2.6,c+(0,4)) withcolor Blue; label(btex VECTOR ENGRAVING etex scaled .7,c+(0,-18)) withcolor Blue; % END DRAWING label.lft("MPT-17-003" infont "cmr8",(312,210)); setbounds currentpicture to unitsquare xscaled 320 yscaled 220; endfig; end.