From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106386 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Shading Date: Wed, 26 Feb 2020 11:34:14 +0100 Message-ID: References: <20200225171850.c61c0f4c523ae228a91cec33@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2908053087660740130==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="22449"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 26 11:37:46 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j6u4X-0005k1-Pe for gctc-ntg-context-518@m.gmane-mx.org; Wed, 26 Feb 2020 11:37:45 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1005B181F6C; Wed, 26 Feb 2020 11:37:22 +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 iS0CmnonqYEA; Wed, 26 Feb 2020 11:37:17 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id ACE341822CC; Wed, 26 Feb 2020 11:37:17 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B365E181F42 for ; Wed, 26 Feb 2020 11:37:16 +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 LA1KH9a2AZAK for ; Wed, 26 Feb 2020 11:37:12 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.46; helo=mail-wm1-f46.google.com; envelope-from=fabrice1.couvreur@gmail.com; receiver= Original-Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 B5388181E8D for ; Wed, 26 Feb 2020 11:37:12 +0100 (CET) Original-Received: by mail-wm1-f46.google.com with SMTP id z12so2389973wmi.4 for ; Wed, 26 Feb 2020 02:37:12 -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=E9mCWz0J04bD1WEWbM7kDLJBkrS2Y/SjPxxor0RE36k=; b=CwaPDGrzI7kOdRNVnwh3tumB+Xkm9M2Di82EXtoBVL/PrOHu+OPeumTP5vnUQJXpuA 2TomRKoHpOfo6rcqMiJKpsBzuBwMHKa1Et9vRd7CwfjdW8ktZ5vpCMI/wIlWcgEgvMbz h7OeJJPKI5CPz7FQhZawrk8/F1BCRM9zvqTlc1McBjTOuACS+pVaPhiCy8wKD5/HAZiY lwyZF7SddU+ngvfCSbdOd1KnufcDb7Liy81j91Y+PfvIERXLa9s4iVLWiS46fdgLmzqm ik0ni+kDwoFYUr94JopWxF72xRfpCLVEfVXhUZ5ujK25SZjsZOy0DP4hyL55RJy6UzjJ eqyg== 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=E9mCWz0J04bD1WEWbM7kDLJBkrS2Y/SjPxxor0RE36k=; b=q8i6xL3BBXGDoLOGuCys7piALrpkYlWWlm0eJFTCC4HV/As91+F24B+/0Gt3STQJE+ kq3KisiHTMoleNxZRonSfkSn/eNhRnLu8eNRbdazfPjSfuGhmta7VnWgYKONa5dgj68p PQPSkoPwXmnro1sATdFVCIzPLSj3Tz9M0fH1Yact/UyHE/YzsfQt+WHIG6/Kb7p4eI/c UA4243Of4Cp7bS5WjsqCLP6S74sr1yAQcK+Du+Wuprl5nRDycaM37Er3q/L6JGDIG3Kl pNq4AjzfVgJcYxgMetnODjNMLAVaOQJrqVHTVjTzf2EXnYjHU/jXkopfs2EksYCPoqlc wc6w== X-Gm-Message-State: APjAAAWTX25CT+XPKaUkS3CWE65IYftwOgshur/0lJwS1QqlM8Vv8jiP hkJ//mabx3dnsbojpGY6EkmfEtWk/bvWq5p3CilhWPpRZaA= X-Google-Smtp-Source: APXvYqyuZ+J4T2fkjCrtOiml/aB4qWtbe6PJ0Mnc1cEJFvbidfE7WDXse8RSjldaNwTmQaK4jsZvPce0ZWFVC30IDN4= X-Received: by 2002:a1c:1d8d:: with SMTP id d135mr4786068wmd.92.1582713431977; Wed, 26 Feb 2020 02:37:11 -0800 (PST) In-Reply-To: <20200225171850.c61c0f4c523ae228a91cec33@gmail.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.io gmane.comp.tex.context:106386 Archived-At: --===============2908053087660740130== Content-Type: multipart/alternative; boundary="000000000000e4f067059f782f6c" --000000000000e4f067059f782f6c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Wolfgang, I would like the same result as the code with TikZ. Thank you. Fabrice \usemodule[tikz] \starttext \startMPcode fill fullcircle xscaled 1cm yscaled 0.88cm shaded withshademethod "circular" withshadefactor 0.75 withshadecolors (white,red); \stopMPcode \starttikzpicture \shade[ball color=3Dred] (0,0) ellipse (0.5cm and 0.44cm); \stoptikzpicture \stoptext Le mar. 25 f=C3=A9vr. 2020 =C3=A0 17:18, Wolfgang Schuster < wolfgang.schuster.lists@gmail.com> a =C3=A9crit : > On Tue, 25 Feb 2020 12:34:00 +0100 > Fabrice Couvreur wrote: > > > Hi, > > In the Metafun documentation on page 410, there is a shaded bullet "fil= l > > fullcircle shaded cshade". > > I tried to reproduce the same effect, but it is not exactly the same > result. > > It's different because your code isn't the same as the example in the > manual. > > \starttext > > \startMPcode > fill fullcircle scaled 4cm shaded withshademethod "circular" ; > \stopMPcode > > \stoptext > > > \starttext > > \startMPcode > > fill fullcircle scaled 4cm shaded withshademethod "circular" > > withshadevector (1,0) > > withshadecolors (red, white) ; > > \stopMPcode > > \stoptext > > Not sure what you're trying to achieve but this is closer the example > above. > > \starttext > > \startMPcode > fill fullcircle scaled 4cm shaded > withshademethod "circular" > withshadefactor 0.75 > withshadecolors (white,red) > ; > \stopMPcode > > \stoptext > > Wolfgang > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ > --000000000000e4f067059f782f6c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Wolfgang,
I would like the same = result as the code with TikZ.
Thank you.<= br>Fabrice


\usemodule[tikz]
\st= arttext
\startMPcode
fill fullcircle xscaled 1cm yscaled 0.88cm shade= d
=C2=A0 =C2=A0 withshademethod "circular"
=C2=A0 =C2=A0 wi= thshadefactor 0.75
=C2=A0 =C2=A0 withshadecolors (white,red);
\stopMP= code


\starttikzpicture
=C2=A0 \shade[ball color=3Dred] (0,0) = ellipse (0.5cm and 0.44cm);
\stoptikzpicture
\stoptext
Le=C2=A0m= ar. 25 f=C3=A9vr. 2020 =C3=A0=C2=A017:18, Wolfgang Schuster <wolfgang.schust= er.lists@gmail.com> a =C3=A9crit=C2=A0:
On Tue, 25 Feb 2020 12:34:00 +0100
Fabrice Couvreur <fabrice1.couvreur@gmail.com> wrote:

> Hi,
> In the Metafun documentation on page 410, there is a shaded bullet &qu= ot;fill
> fullcircle shaded cshade".
> I tried to reproduce the same effect, but it is not exactly the same r= esult.

It's different because your code isn't the same as the example in t= he manual.

\starttext

\startMPcode
fill fullcircle scaled 4cm shaded withshademethod "circular" ; \stopMPcode

\stoptext

> \starttext
> \startMPcode
> fill fullcircle scaled 4cm shaded=C2=A0 withshademethod "circular= "
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 w= ithshadevector (1,0)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 w= ithshadecolors (red, white) ;
> \stopMPcode
> \stoptext

Not sure what you're trying to achieve but this is closer the example a= bove.

\starttext

\startMPcode
fill fullcircle scaled 4cm shaded
=C2=A0 =C2=A0 withshademethod "circular"
=C2=A0 =C2=A0 withshadefactor 0.75
=C2=A0 =C2=A0 withshadecolors (white,red)
;
\stopMPcode

\stoptext

Wolfgang
___________________________________________________________________________= ________
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
___________________________________________________________________________= ________
--000000000000e4f067059f782f6c-- --===============2908053087660740130== 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== --===============2908053087660740130==--