From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15888 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: Mon, 2 Aug 2004 11:11:58 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <20040802091158.GB1204@cebitec.uni-bielefeld.de> References: <20040723075321.GA19666@cebitec.uni-bielefeld.de> <4100DE3C.90609@seznam.cz> <41015B24.6090807@wxs.nl> <20040727110235.GC25818@cebitec.uni-bielefeld.de> <410A1E21.3030803@seznam.cz> 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 1091443938 7067 80.91.224.253 (2 Aug 2004 10:52:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 Aug 2004 10:52:18 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 02 12:52:11 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 1BraQN-0002LS-00 for ; Mon, 02 Aug 2004 12:52:11 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0C303127B6; Mon, 2 Aug 2004 12:52:11 +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 18030-03; Mon, 2 Aug 2004 12:52:10 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 684CF127AB; Mon, 2 Aug 2004 12:50:26 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 91162127AB for ; Mon, 2 Aug 2004 12:50:24 +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 18061-08 for ; Mon, 2 Aug 2004 12:50:24 +0200 (CEST) Original-Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE (unknown [129.70.160.28]) by ronja.ntg.nl (Postfix) with ESMTP id 0F6D21279E for ; Mon, 2 Aug 2004 12:50:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 3C0D52D60D for ; Mon, 2 Aug 2004 12:50:19 +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 21902-02 for ; Mon, 2 Aug 2004 12:50:18 +0200 (MEST) Original-Received: from mowgli.Genetik.Uni-Bielefeld.DE (mowgli.CeBiTec.Uni-Bielefeld.DE [129.70.160.61]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id F36CE2D605 for ; Mon, 2 Aug 2004 12:50:17 +0200 (MEST) Original-Received: by mowgli.Genetik.Uni-Bielefeld.DE (Postfix, from userid 13119) id 8DD30BF3; Mon, 2 Aug 2004 12:50:17 +0200 (MEST) Original-To: Vit Zyka Content-Disposition: inline In-Reply-To: <410A1E21.3030803@seznam.cz> User-Agent: Mutt/1.4.1i Resent-From: eckhart.guthoehrlein@uni-bielefeld.de Resent-Date: Mon, 2 Aug 2004 12:50:17 +0200 Resent-To: ntg-context@ntg.nl Resent-Message-Id: <20040802105017.8DD30BF3@mowgli.Genetik.Uni-Bielefeld.DE> 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:15888 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15888 On Fri, Jul 30, 2004 at 12:08:33PM +0200, Vit Zyka wrote: > >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 > > Sorry I still do not see your white box. Perhaps something is corrupted > in my context installation. > > I had a quick look into mpobj source and I tried to remove default white > background, but I was not successful. Me either. > Vit Zyka > > P.S. I played with raw MP code: > > input metaobj; > beginfig(1) > fill fullcircle scaled 1cm withcolor red; > color t; t:=(1,1,0); > %setObjectDefaultOption("Box")("fillcolor")(t); > newBox.test(""); > Obj(test).c=origin; > drawObj(test); > endfig; > > end. Your color is not transparent, so it will work as expected: no white box. -- Eckhart