ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: MetaFun questions
Date: Mon, 03 Mar 2003 22:10:27 +0100	[thread overview]
Message-ID: <5.1.0.14.1.20030303220936.02449970@server-1> (raw)
In-Reply-To: <20030228152256.02da080c.morawski@gmx.net>

At 03:22 PM 2/28/2003 +0100, you wrote:

>\definecolor[sa][r=1,t=0.7,a=1]
>\definecolor[ea][g=1,t=0.5,a=1]
>
>\definecolor[s][r=1]
>\definecolor[e][g=1]
>
>\startMPgraphic
>   path p ; p := unitsquare xscaled 5cm yscaled 5cm ;
>   fill p shifted (4cm,4cm) withcolor .7white ;
>   fill p shifted (-3cm,-3cm) withcolor .8white ;
>
>   linear_shade(p,0,\MPcolor{s},\MPcolor{e});
>\stopMPgraphic
>
>\loadcurrentMPgraphic\placeMPgraphic

i'll have a look at it; i'm not even sure if transparent shades are 
possible, since the shading vectors need color vectors (implementing 
shading and transparency took me quite some time to figure out from the 
fuzzy specs]

(btw:

\startMPcode

\stopMPcode

or

\startMPpage

\stopMPpage

saves you some typing)

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       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
-------------------------------------------------------------------------

  reply	other threads:[~2003-03-03 21:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-27 13:09 Jens-Uwe Morawski
2003-02-27 14:55 ` Hans Hagen
2003-02-27 19:05   ` Nigel King
2003-02-28  7:43     ` Hans Hagen
2003-02-28  9:17       ` Nigel King
2003-03-06 13:13         ` Hans Hagen
2003-03-06 17:16           ` Jens-Uwe Morawski
2003-03-07 10:21             ` Hans Hagen
2003-02-28 14:22   ` Jens-Uwe Morawski
2003-03-03 21:10     ` Hans Hagen [this message]
2003-03-06 18:10       ` Jens-Uwe Morawski

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=5.1.0.14.1.20030303220936.02449970@server-1 \
    --to=pragma@wxs.nl \
    --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).