ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Peter Rolf <indiego@gmx.net>
Subject: Re: transparent metafun colors turn nearly black
Date: Sat, 23 Sep 2006 19:28:52 +0200	[thread overview]
Message-ID: <45156ED4.2030209@gmx.net> (raw)
In-Reply-To: <E1GR91X-0008S8-HS@approximate.corpus.cam.ac.uk>

Hi Sanjoy,

Sanjoy Mahajan wrote:
> Just for (meta)fun, I tried a few experiments with transparent colors.
> The example below gives a black circle instead of a red one.  Is it that
> transparent colors aren't part of metafun -- which I can easily live
> with since color printing is too expensive still, alas -- or have I
> omitted an essential command?
>
No, as your example works here (beta 17.09.). I also tried your example
at contextgarden (same beta) and it worked too (using Firefox).

Maybe you also need
\runMPTEXgraphicstrue (enabled in my cont-sys.tex)?

Greetings, Peter

> ==================== cut here ====================
> \runMPgraphicstrue
> \setupcolors[state=start]
> \starttext
> \startreusableMPgraphic{a}
> % _inline_specials_ := true; % had hopes for this line, but no luck
> % next line taken as an example from mp-spec.mp
> fill fullcircle scaled 10cm withcolor transparent(8,.3,red);
> \stopreusableMPgraphic
> 
> \placefigure[force,none]{}{\reuseMPgraphic{a}}
> \stoptext
> ==================== cut here ====================
>
> The metapost output (testfile-mpgraph.1) always contains the following
> color setting, no matter what arguments I pass to transparent() :
> 
>  0.123 0.003 0.001 setrgbcolor
> 
> Which is close to black.
> 
> (This is all with ConTeXt 2006.08.08.  The live ConTeXt gives a square
> saying "undefined".)
> 
> -Sanjoy
> 
> `A society of sheep must in time beget a government of wolves.'
>    -- Bertrand de Jouvenal
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 
> 

  reply	other threads:[~2006-09-23 17:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-23 15:02 Sanjoy Mahajan
2006-09-23 17:28 ` Peter Rolf [this message]
2006-09-23 17:59   ` Sanjoy Mahajan
2006-09-23 18:22     ` Peter Rolf
2006-09-23 20:00       ` Taco Hoekwater
2006-09-24  3:20         ` Sanjoy Mahajan
2006-09-25  7:52           ` Mojca Miklavec
2006-09-25 10:58             ` Sanjoy Mahajan
2006-09-29  8:54               ` Patrick Gundlach

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=45156ED4.2030209@gmx.net \
    --to=indiego@gmx.net \
    --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).