ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen Outside <pragma@wxs.nl>
Subject: Re: metaobj and transparent colors with \MPcolor
Date: Fri, 23 Jul 2004 11:38:28 -0700	[thread overview]
Message-ID: <41015B24.6090807@wxs.nl> (raw)
In-Reply-To: <4100DE3C.90609@seznam.cz>

Vit Zyka wrote:

> Sorry, I can not reproduce your example. I get only red page with 
> black page number in header. No white box. And I do not known metaobj 
> macro.
>
> But I have a question. It is really needed to surround \definecolor by 
> \startMPenvironment? Since \definecolor has to result to \pdfobj and 
> \pdfliteral (pdftex primitives) and propagation to mpost (which is EPS 
> not PDF generator) has no sence. Only reference to color is needed and 
> it is done via \MPcolor. Am I right?

only things that are needed in btex ... etex or textext(..) need to be 
put into \startMPenvironment, so in your case the color def can stay 
outside the env.

> Vit Zyka
>
>> 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})";
>
can you try
                 fillcolor \MPcolor{...}

or maybe

color xxxx ; xxxx := \MPcolor{...} ; fillcolor(xxxx) ;

>>
>> 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
>
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
> ================================================================
> Deze e-mail is door E-mail VirusScanner van Planet Internet 
> gecontroleerd op virussen.
> Op http://www.planet.nl/evs staat een verwijzing naar de actuele lijst 
> waar op wordt gecontroleerd.
>
>
>


-- 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

  parent reply	other threads:[~2004-07-23 18:38 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 [this message]
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

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=41015B24.6090807@wxs.nl \
    --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).