ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Eckhart Guthöhrlein" <eckhart.guthoehrlein@uni-bielefeld.de>
Subject: Re: metaobj and transparent colors with \MPcolor
Date: Tue, 27 Jul 2004 13:02:36 +0200	[thread overview]
Message-ID: <20040727110235.GC25818@cebitec.uni-bielefeld.de> (raw)
In-Reply-To: <41015B24.6090807@wxs.nl>

On Fri, Jul 23, 2004 at 11:38:28AM -0700, Hans Hagen Outside wrote:
> >>If I use the fillcolor as an argument to the object
> >>
> >>    newBox.test(btex Transparent? etex) "filled(true)"
> >>        "fillcolor(\MPcolor{Durchsichtig})";
> >
> can you try
>                 fillcolor \MPcolor{...}
> 
> or maybe
> 
> color xxxx ; xxxx := \MPcolor{...} ; fillcolor(xxxx) ;

Here is my current file, which just gives a white background in the box.

\setupcolors[state=start]
\setupbackgrounds[page][background=color,backgroundcolor=red]
\definecolor[Transparent][r=0,g=1,b=1,t=0,a=normal]
\startreusableMPgraphic{test}
	input metaobj;
	color t; t:=\MPcolor{Transparent};
	setObjectDefaultOption("Box")("fillcolor")(t);
	newBox.test(btex Transparent? etex) "filled(true)";
	Obj(test).c=origin;
	drawObj(test);
\stopreusableMPgraphic
\starttext
	\reuseMPgraphic{test}
\stoptext

Experimenting with default degrees of transparency, e.g. t=0.5, I have
noticed that the object is indeed filled using the Transparent color.
The problem seems to be that all objects in metaobj are filled using a
non-transparent white by default. Subsequent filling with a completely
transparent color then of course gives just white.
Well, I just want to see my normal page background through the object.
Can I achieve this?

-- 
Eckhart

  reply	other threads:[~2004-07-27 11:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-23  7:53 Eckhart Guthöhrlein
2004-07-23  9:45 ` Vit Zyka
2004-07-23 11:44   ` Eckhart Guthöhrlein
2004-07-24  9:28     ` Vit Zyka
2004-07-27 10:50       ` Eckhart Guthöhrlein
2004-07-23 18:38   ` Hans Hagen Outside
2004-07-27 11:02     ` Eckhart Guthöhrlein [this message]
2004-07-27 11:28       ` Hans Hagen
     [not found]       ` <410A1E21.3030803@seznam.cz>
2004-08-02  9:11         ` Eckhart Guthöhrlein
     [not found]           ` <410E237B.4030807@seznam.cz>
2004-08-02 11:44             ` Eckhart Guthöhrlein
2004-07-23 21:31 ` Denis Roegel
2004-07-24  6:24   ` Hans Hagen Outside

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=20040727110235.GC25818@cebitec.uni-bielefeld.de \
    --to=eckhart.guthoehrlein@uni-bielefeld.de \
    --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).