From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/105654 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Transparency (Metapost) Date: Sun, 1 Dec 2019 11:32:52 +0100 Message-ID: References: <82D114A8-03DF-4492-BA46-C9CF30FF11D2@me.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4093617397290736595==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="14326"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Dec 01 11:35:12 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ibMZH-0003Td-B7 for gctc-ntg-context-518@m.gmane.org; Sun, 01 Dec 2019 11:35:07 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9102016385A; Sun, 1 Dec 2019 11:34:39 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nOGeqRIb8DHO; Sun, 1 Dec 2019 11:34:37 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5D343163850; Sun, 1 Dec 2019 11:34:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BBA8C16384D for ; Sun, 1 Dec 2019 11:34:36 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mQ2eouA6asuo for ; Sun, 1 Dec 2019 11:34:35 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.52; helo=mail-wr1-f52.google.com; envelope-from=fabrice1.couvreur@gmail.com; receiver= Original-Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 73092163841 for ; Sun, 1 Dec 2019 11:34:35 +0100 (CET) Original-Received: by mail-wr1-f52.google.com with SMTP id c14so15873304wrn.7 for ; Sun, 01 Dec 2019 02:34:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=jiikPPQC0bT6f+tm84qpeWaKK9FTCixRZst6zIgxC8w=; b=Wkwy5TisEi5O9e1NUCM81HIyH5gTXdl3oY0qF4glqPuQ/Ez3PVQ2/4DGjiuc/PRbdJ kYwEikWsBUnky5eQkoPVmpVqHm23QHygxv3FwBBOeLnkX/Z4FeDWfnnBf4SweuWhIfDe UfxcEAZqjQIV0rX+5/fPdU69zZtVYzsihI007HQTygty9ILNpzmd9tezKfhM/vhLgO3H MR4Gy3ZbJtiqkcyQ8IIUmL9mAWnTwBigQMn7EsveYD8ve+umsMbIFdACAU4STvom+OGu zZwkbUN2sh1ZxEaYe3qs1k4767aAbtBj1VZ3ZcxqZXbbvi6uZQ/9Btd0KdILzP6Vh6x6 mcSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=jiikPPQC0bT6f+tm84qpeWaKK9FTCixRZst6zIgxC8w=; b=fYZKLG3ojTfaeJWRd4KHI6aVM7CNlZM8/p29Xy3MwWb1BRU5+EPu8dxsXpb5CU+NWQ CzjXiKSD+pwykfNOT7j/9y8APgc+q450RmsVABITW9YvIcE6aY/EYknkXZPDPnbqmx9i W2jWcHYWY1gNgupdFv1pukwXAycYcpt4Zs+gC2WxWVoOzcY8ahsK5yDzADb+72zGSHNJ iJlUC/BJSESEniwKnvZW0B+lK0RI989YxJZdcMgt8G5Z9tpgjZEQPdY6eaBHb2rsCY1F ZFhZFFurt5ZVe5bvcrAysDcValDDGfcM5OPEQyKWyVr5MbojUKsNLpZBCrRJPfw7O2+4 5kcw== X-Gm-Message-State: APjAAAXvXIdCWO1UO8qEL81jfsM+Os2LV3IjP5McTzR0fk/p5DYwQd5x u88ze1lUpoOKLWEQbB5jZPZRyh9DRkn+8oJdE3YapIlL X-Google-Smtp-Source: APXvYqzOqAX+Gk4UE27j7VnA+h6Z065deum4dHh7T0VFN0NHJ3j/cHtmeLmVnUJ0uLW3LskOOyCnjk4KpSYOwSuITo0= X-Received: by 2002:adf:c746:: with SMTP id b6mr6419013wrh.298.1575196474708; Sun, 01 Dec 2019 02:34:34 -0800 (PST) In-Reply-To: <82D114A8-03DF-4492-BA46-C9CF30FF11D2@me.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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 Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:105654 Archived-At: --===============4093617397290736595== Content-Type: multipart/alternative; boundary="00000000000053960f0598a2025c" --00000000000053960f0598a2025c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Thank you for your suggestion. However, it works with context and not with lmtx. Fabrice \starttext \startMPcode defaultfont :=3D "texgyrepagella-regular*default" ; defaultscale :=3D0.8; color brown; brown =3D (0.128,0.00,0.00); path twos, threes, sixes; twos =3D fullcircle xscaled 4cm yscaled 2cm rotated 180 shifted 42 left; threes =3D fullcircle xscaled 4cm yscaled 2cm shifted 42 right; sixes =3D buildcycle(twos, threes); fill twos withcolor brown withtransparency(1,0.75); fill threes withcolor yellow withtransparency(1,0.75); fill sixes withcolor yellow + brown withtransparency(1,0.75); draw twos; draw threes; label("...",(1.5cm,0)); label("...",(0,0)); label("...",(-1.5cm,0)); label.top("yeux marron",(-1.5cm,1.25cm)); label.top("cheveux blonds",(1.5cm,1.25cm)); \stopMPcode \stoptext tex error > tex error on line 1 in file ./blond.tex: ? \font_helpers_low_level_define ...\scaledfontmode \relax \ifcase \scaledfont... \font_helpers_trigger_define ..._identifier_class \csname \v_font_identifier... \applyfontclassstrategies ...to_size \lastnamedcs \else \expandafter \font_h... \font_helpers_synchronize_font ...classstrategies \fi \setfalse \c_font_auto... \rm ->\ifmmode \mathrm \else \normalrm \fi \font_basics_switch_style ...dcsname \lastnamedcs \edef \fontstyle {#1}\ifmm... ... l.1 \starttext 1 >> \starttext 2 \startMPcode 3 defaultfont :=3D "texgyrepagella-regular*default" ; 4 defaultscale :=3D0.8; 5 6 color brown; 7 brown =3D (0.128,0.00,0.00); 8 9 path twos, threes, sixes; 10 twos =3D fullcircle xscaled 4cm yscaled 2cm rotated 180 11 shifted 42 left; mtx-context | fatal error: return code: 256 Le dim. 1 d=C3=A9c. 2019 =C3=A0 00:34, Jeong Dal a =C3=A9cr= it : > \ > > > Dear Fabrice, > > I got color and transparency using the following command in LMTX(metafun)= . > > fill p withcolor yellow withtransparency(1, .75); > > I hope that it helps. > > Best regards, > > Dalyoung > > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > _________________________________________________________________________= __________ > --00000000000053960f0598a2025c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello
Thank you for you= r suggestion. However, it works with context and no= t with lmtx.
Fabrice
=
\starttext
\startMPcode
=C2=A0 =C2=A0de= faultfont :=3D "texgyrepagella-regular*default" ;
=C2=A0 =C2= =A0defaultscale :=3D0.8;
=C2=A0 =C2=A0
=C2=A0 =C2=A0color brown;
= =C2=A0 =C2=A0brown =3D (0.128,0.00,0.00);
=C2=A0 =C2=A0
=C2=A0 =C2=A0= path twos, threes, sixes;
=C2=A0 =C2=A0twos =3D fullcircle xscaled 4cm y= scaled 2cm rotated 180
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 shifted 42 lef= t;
=C2=A0 =C2=A0threes =3D fullcircle xscaled 4cm yscaled 2cm shifted 42= right;
=C2=A0 =C2=A0sixes =3D buildcycle(twos, threes); =C2=A0 =C2=A0 = =C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
=C2=A0 =C2=A0fill = twos =C2=A0 withcolor brown withtransparency(1,0.75);
=C2=A0 =C2=A0fill = threes withcolor yellow withtransparency(1,0.75);
=C2=A0 =C2=A0fill sixe= s withcolor yellow + brown withtransparency(1,0.75);
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
=C2=A0 =C2=A0draw = twos;
=C2=A0 =C2=A0draw threes;

=C2=A0 =C2=A0label("..."= ;,(1.5cm,0));
=C2=A0 =C2=A0label("...",(0,0));
=C2=A0 =C2= =A0label("...",(-1.5cm,0));
=C2=A0 =C2=A0label.top("yeux = marron",(-1.5cm,1.25cm));
=C2=A0 =C2=A0label.top("cheveux blon= ds",(1.5cm,1.25cm));
\stopMPcode
\stoptext
<= div class=3D"gmail_default" style=3D"font-family:verdana,sans-serif">
tex error =C2=A0 =C2=A0 =C2=A0 > tex= error on line 1 in file ./blond.tex: ?


\font_helpers_low_level_= define ...\scaledfontmode
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \relax \ifcase \sca= ledfont...
\font_helpers_trigger_define ..._identifier_class
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 \csname \v_font_identifier...
\applyfontclassstrate= gies ...to_size \lastnamedcs
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \else \expandaf= ter \font_h...
\font_helpers_synchronize_font ...classstrategies
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 \fi \setfalse \c_font_auto...
\rm ->\ifmmode= \mathrm \else \normalrm
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0\fi
\font_basics_switch_style ...dcsname \lastnamed= cs
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \edef \fontstyle {#1}\ifmm...
...
= l.1 \starttext
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0

=C2=A01= >> =C2=A0\starttext
=C2=A02 =C2=A0 =C2=A0 \startMPcode
=C2=A03= =C2=A0 =C2=A0 =C2=A0 =C2=A0defaultfont :=3D "texgyrepagella-regular*d= efault" ;
=C2=A04 =C2=A0 =C2=A0 =C2=A0 =C2=A0defaultscale :=3D0.8;<= br>=C2=A05 =C2=A0 =C2=A0 =C2=A0 =C2=A0
=C2=A06 =C2=A0 =C2=A0 =C2=A0 =C2= =A0color brown;
=C2=A07 =C2=A0 =C2=A0 =C2=A0 =C2=A0brown =3D (0.128,0.00= ,0.00);
=C2=A08 =C2=A0 =C2=A0 =C2=A0 =C2=A0
=C2=A09 =C2=A0 =C2=A0 =C2= =A0 =C2=A0path twos, threes, sixes;
10 =C2=A0 =C2=A0 =C2=A0 =C2=A0twos = =3D fullcircle xscaled 4cm yscaled 2cm rotated 180
11 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 shifted 42 left;

mtx-context =C2=A0 = =C2=A0 | fatal error: return code: 256


Le=C2=A0dim. 1 d=C3=A9c. 2019 =C3=A0=C2=A000:34, Jeong Dal= <haksan@me.com> a =C3=A9crit=C2= =A0:
\

Dear Fabrice,

I got color and tra= nsparency using the following command in LMTX(metafun).

fill p withc= olor yellow withtransparency(1, .75);

I hope that it helps.

B= est regards,

Dalyoung
<= /div>
________________________________________________________________= ___________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--00000000000053960f0598a2025c-- --===============4093617397290736595== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============4093617397290736595==--