ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* metaobj and transparent colors with \MPcolor
@ 2004-07-23  7:53 Eckhart Guthöhrlein
  2004-07-23  9:45 ` Vit Zyka
  2004-07-23 21:31 ` Denis Roegel
  0 siblings, 2 replies; 12+ messages in thread
From: Eckhart Guthöhrlein @ 2004-07-23  7:53 UTC (permalink / raw)


Hi,

I try to achieve transparently filled objects using the metaobj package.
However, transparency is ignored completely in the output, I just get a
normal white. Here is my test file:

\setupcolors[state=start]
\setupbackgrounds[page][background=color,backgroundcolor=red]

\startMPenvironment[global]
  \definecolor[Durchsichtig][r=1.0,g=1.0,b=1.0,t=0.0,a=normal]
\stopMPenvironment

\startreusableMPgraphic{test}
	input metaobj;
	setObjectDefaultOption("Box")("fillcolor")(\MPcolor{Durchsichtig});
	newBox.test(btex Transparent? etex) "filled(true)";
	Obj(test).c=origin;
	drawObj(test);
\stopreusableMPgraphic

\starttext
	\reuseMPgraphic{test}
\stoptext


If I use the fillcolor as an argument to the object

	newBox.test(btex Transparent? etex) "filled(true)"
		"fillcolor(\MPcolor{Durchsichtig})";

I get error messages from the mpost run. So it seems that metaobj and
\MPcolor don't like each other.
Any ideas how to circumvent this problem?

Regards,
Eckhart

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-08-02 11:44 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-23  7:53 metaobj and transparent colors with \MPcolor 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
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

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).