From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30947 Path: news.gmane.org!not-for-mail From: Sanjoy Mahajan Newsgroups: gmane.comp.tex.context Subject: transparent metafun colors turn nearly black Date: Sat, 23 Sep 2006 11:02:35 -0400 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1159023802 2651 80.91.229.2 (23 Sep 2006 15:03:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 23 Sep 2006 15:03:22 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 23 17:03:17 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GR921-0002Wx-Ew for gctc-ntg-context-518@m.gmane.org; Sat, 23 Sep 2006 17:03:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DEA021FE35; Sat, 23 Sep 2006 17:03:04 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11079-05; Sat, 23 Sep 2006 17:02:54 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B50DF1FDC8; Sat, 23 Sep 2006 17:02:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B2D991FDC8 for ; Sat, 23 Sep 2006 17:02:50 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11034-05 for ; Sat, 23 Sep 2006 17:02:44 +0200 (CEST) Original-Received: from elasmtp-galgo.atl.sa.earthlink.net (elasmtp-galgo.atl.sa.earthlink.net [209.86.89.61]) by ronja.ntg.nl (Postfix) with SMTP id B8E5C1FD9A for ; Sat, 23 Sep 2006 17:02:42 +0200 (CEST) Original-Received: from [24.41.6.91] (helo=approximate.corpus.cam.ac.uk) by elasmtp-galgo.atl.sa.earthlink.net with asmtp (TLSv1:AES256-SHA:256) (Exim 4.34) id 1GR91d-0002Dr-GS; Sat, 23 Sep 2006 11:02:41 -0400 Original-Received: from sanjoy by approximate.corpus.cam.ac.uk with local (Exim 4.60) (envelope-from ) id 1GR91X-0008S8-HS; Sat, 23 Sep 2006 11:02:35 -0400 Original-To: ntg-context@ntg.nl X-Mailer: MH-E 7.85; nmh 1.1; GNU Emacs 21.4.1 X-ELNK-Trace: dcd19350f30646cc26f3bd1b5f75c9f474bf435c0eb9d4786a166ed818d7c747a9d64e63f46cd03498cd7d08fba97619350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 24.41.6.91 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:30947 Archived-At: Just for (meta)fun, I tried a few experiments with transparent colors. The example below gives a black circle instead of a red one. Is it that transparent colors aren't part of metafun -- which I can easily live with since color printing is too expensive still, alas -- or have I omitted an essential command? ==================== cut here ==================== \runMPgraphicstrue \setupcolors[state=start] \starttext \startreusableMPgraphic{a} % _inline_specials_ := true; % had hopes for this line, but no luck % next line taken as an example from mp-spec.mp fill fullcircle scaled 10cm withcolor transparent(8,.3,red); \stopreusableMPgraphic \placefigure[force,none]{}{\reuseMPgraphic{a}} \stoptext ==================== cut here ==================== The metapost output (testfile-mpgraph.1) always contains the following color setting, no matter what arguments I pass to transparent() : 0.123 0.003 0.001 setrgbcolor Which is close to black. (This is all with ConTeXt 2006.08.08. The live ConTeXt gives a square saying "undefined".) -Sanjoy `A society of sheep must in time beget a government of wolves.' -- Bertrand de Jouvenal