%%% TeXMPobj.tex
%%% part of mfpic 0.4.0 2000/08/31
%%%
%  Testing mfpic objects in plainTeX using Metapost
%
\magnification\magstep1

\newdimen\paperheight
\newdimen\paperwidth
%%!!!!!!!!!!!!!!!!!!!!!!!!!!!
% adjust these to your liking:
\paperheight 11 truein
\paperwidth 8.5 truein

% Default plainTeX margins
\hsize \paperwidth
\advance\hsize -2 truein
\hoffset 0 truein
%
\vsize\paperheight
\advance\vsize -2.1 truein
\voffset 0 truein

\input mfpic
\usemetapost
\usetruebbox
\usemplabels
\ifx\pdfoutput\UndEfInEd
\else
  \pdfpageheight=\paperheight
  \pdfpagewidth=\paperwidth
\fi

\mfpverbtex
{\immediate\write16{Thank you for trying mfpic!}}

\opengraphsfile{objs}

\fillcolor{cmyk(1,0,1,.2)} % a not quite so bright green
\drawcolor[rgb]{0,0,1}     % blue
\hatchcolor{RGB(200,200,0)}% not-so-bright yellow
\headcolor{Red}            % dvipsname for red

\centerline{\bf Pictures in \TeX\ with MetaPost}

\input MPobjs

\closegraphsfile

\end

