ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk>
Subject: Re: transparent metafun colors turn nearly black
Date: Mon, 25 Sep 2006 11:58:53 +0100	[thread overview]
Message-ID: <E1GRoAn-0005DS-00@skye.ra.phy.cam.ac.uk> (raw)
In-Reply-To: Your message of "Mon, 25 Sep 2006 09:52:28 +0200." <6faad9f00609250052l1fdb8336he484e4fddbc2ab1a@mail.gmail.com>

>> (I wonder if the live context has been having the same problem?)

> I tried to fix it after Taco reported the exact problem. Plese test
> if it's working now.

Thanks, the live context works!  I tested this file:

  \setupcolors[state=start]
  \starttext
  \startreusableMPgraphic{a}
  fill fullcircle scaled 10cm withcolor transparent(1,0.5,green) ;
  \stopreusableMPgraphic

  \placefigure[force,none]{}{\reuseMPgraphic{a}}
  \stoptext

and a nice transparent green circle shows up.

I also tested (overlapping transparent squares):

  \setupcolors[state=start]
  \starttext
  \startreusableMPgraphic{a}
  fill unitsquare scaled 1cm withcolor yellow;
  fill unitsquare shifted (0.5,0.5)
    scaled 1cm withcolor transparent(1,0.5,red);
  \stopreusableMPgraphic

  \placefigure[force,none]{}{\reuseMPgraphic{a}}
  \stoptext

and it now works.

-Sanjoy

`Never underestimate the evil of which men of power are capable.'
         --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.

  reply	other threads:[~2006-09-25 10:58 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
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 [this message]
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=E1GRoAn-0005DS-00@skye.ra.phy.cam.ac.uk \
    --to=sanjoy@mrao.cam.ac.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).