From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15829 Path: main.gmane.org!not-for-mail From: Eckhart =?iso-8859-1?Q?Guth=F6hrlein?= Newsgroups: gmane.comp.tex.context Subject: Re: metaobj and transparent colors with \MPcolor Date: Tue, 27 Jul 2004 13:02:36 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <20040727110235.GC25818@cebitec.uni-bielefeld.de> References: <20040723075321.GA19666@cebitec.uni-bielefeld.de> <4100DE3C.90609@seznam.cz> <41015B24.6090807@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1090926171 26952 80.91.224.253 (27 Jul 2004 11:02:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Jul 2004 11:02:51 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 27 13:02:44 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BpPjI-0000WU-00 for ; Tue, 27 Jul 2004 13:02:44 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5B17D1279D; Tue, 27 Jul 2004 13:02:43 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10072-06; Tue, 27 Jul 2004 13:02:40 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 53C5F1278B; Tue, 27 Jul 2004 13:02:40 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E60F61278B for ; Tue, 27 Jul 2004 13:02:38 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10083-02 for ; Tue, 27 Jul 2004 13:02:38 +0200 (CEST) Original-Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE (unknown [129.70.160.28]) by ronja.ntg.nl (Postfix) with ESMTP id 935F212787 for ; Tue, 27 Jul 2004 13:02:38 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 526DA2D606 for ; Tue, 27 Jul 2004 13:02:38 +0200 (MEST) Original-Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (sauron [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08290-02-10 for ; Tue, 27 Jul 2004 13:02:37 +0200 (MEST) Original-Received: from bagheera.Genetik.Uni-Bielefeld.DE (bagheera.CeBiTec.Uni-Bielefeld.DE [129.70.160.62]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 48BA02D605 for ; Tue, 27 Jul 2004 13:02:37 +0200 (MEST) Original-Received: by bagheera.Genetik.Uni-Bielefeld.DE (Postfix, from userid 13119) id 0FA78C1F; Tue, 27 Jul 2004 13:02:36 +0200 (MEST) Original-To: mailing list for ConTeXt users Mail-Followup-To: mailing list for ConTeXt users Content-Disposition: inline In-Reply-To: <41015B24.6090807@wxs.nl> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at cebitec.uni-bielefeld.de X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:15829 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15829 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