At 08:15 15/08/2003 -0500, you wrote:

At TUG 2003 you showed us how to use use a color filled fullcircle as a background. Is there a roundedrectangle. I've looked in the METAFun documentation and can find nothing. I would like to make something like the attached pdf and figured MetaFun can do that.

\setupoutput[pdftex]


\startuniqueMPgraphic{rounded}
  path p ; p := OverlayBox smoothed 2pt ;
  fill p
    withcolor OverlayColor ;
  draw p
    withpen pencircle scaled OverlayLineWidth
    withcolor OverlayLineColor ;
\stopuniqueMPgraphic

\defineoverlay[rounded][\uniqueMPgraphic{rounded}]

\setupcolors[state=start]

\starttext

\framed
  [background=rounded,
   frame=off,
   framecolor=green,
   rulethickness=1pt,
   backgroundcolor=red]
  {test me}

\stoptext

Is it okay to ask newbie questions on the mailing list. I have been reading the list for about 10 days and see almost no newbies. Everyone seems to be very expert.

just go ahead and ask!


Hans
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                       information: http://www.pragma-ade.com/roadmap.pdf
                    documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to