From: Nigel King <king@dircon.co.uk>
Subject: Re: Instructions for m-pstric
Date: Fri, 08 Aug 2003 23:03:39 +0100 [thread overview]
Message-ID: <BB59DCCB.14176%king@dircon.co.uk> (raw)
In-Reply-To: <200308081658.10289.john@wexfordpress.com>
John,
I did this to simulate a picture frame. Looking at it now I am sure it could
be simplified.
\setupoutput[pdftex]
\setupcolors[state=start]
\startreusableMPgraphic{bg}
StartPage ;
z11 = ulcorner Page ;
z12 = urcorner Page ;
z13 = lrcorner Page ;
z14 = llcorner Page ;
z91 = (-1, 1.414) ;
z92 = ( 1, 1.414) ;
z93 = ( 1,-1.414) ;
z94 = (-1,-1.414) ;
z21 = z11 - 16z91 ;
z22 = z12 - 16z92 ;
z23 = z13 - 16z93 ;
z24 = z14 - 16z94 ;
z31 = z21 - 6z91 ;
z32 = z22 - 6z92 ;
z33 = z23 - 6z93 ;
z34 = z24 - 6z94 ;
fill z11--z12--z13--z14--z11--z21--z24--z23--z22--z21--cycle withcolor
yellow ;
fill z21--z22--z32--z31--cycle withcolor .9white ;
fill z22--z23--z33--z32--cycle withcolor .8white ;
fill z23--z24--z34--z33--cycle withcolor .9white ;
fill z24--z21--z31--z34--cycle withcolor .8white ;
StopPage ;
\stopreusableMPgraphic
\defineoverlay
[bg]
[\reuseMPgraphic{bg}]
\setupbackgrounds
[page]
[background={bg}]
\starttext
\dorecurse{3}{\input knuth}
\stoptext
--
Nigel
next prev parent reply other threads:[~2003-08-08 22:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-08 20:58 John Culleton
2003-08-08 22:03 ` Nigel King [this message]
2003-08-11 8:51 ` Hans Hagen
2003-08-11 8:39 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BB59DCCB.14176%king@dircon.co.uk \
--to=king@dircon.co.uk \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).