18 Jun
2008
18 Jun
'08
12:11 p.m.
On Jun 18, 2008, at 1:58 PM, Peter Rolf wrote:
\startuniqueMPgraphic{dim:and:focus}{fw,fh,fx,fy,c} begingroup save q ; path q;
q:= (unitsquare xyscaled(\MPvar{fw},\MPvar{fh}) smoothed 4px) shifted (\MPvar{fx},\MPvar{fy});
fill OverlayBox--reverse q-- cycle withcolor \MPvar{c} ;
% draw q withpen pxcpen withcolor darkgray; setbounds currentpicture to OverlayBox ; % just to be safe in case of outside focus rectangle endgroup; \stopuniqueMPgraphic
no further explanations :D
best wishes, peter
Peter, Wolfgang, thanks so much! I had no idea "reverse" could work like this, wonderful. I will try and build this into my presentation module. Thomas