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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________