\starttextBefore:\\\startMPcodedraw unitsquare xscaled 2cm yscaled 1cm;\stopMPcode\\After:\\\startMPcodefor i=0 upto 1:draw unitsquare scaled 1cm xshifted i*cm;endfor;\stopMPcode\stoptext
\startuniqueMPgraphic{line}path a;a:=(0,0)--(0,3cm);draw a withpen pencircle scaled 3pt withcolor green;\stopuniqueMPgraphic\defineoverlay[line][{\uniqueMPgraphic{line}}]