[NTG-context] Shading
Fabrice Couvreur
fabrice1.couvreur at gmail.com
Wed Feb 26 11:34:14 CET 2020
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=red] (0,0) ellipse (0.5cm and 0.44cm);
\stoptikzpicture
\stoptext
Le mar. 25 févr. 2020 à 17:18, Wolfgang Schuster <
wolfgang.schuster.lists at gmail.com> a écrit :
> On Tue, 25 Feb 2020 12:34:00 +0100
> Fabrice Couvreur <fabrice1.couvreur at gmail.com> wrote:
>
> > Hi,
> > In the Metafun documentation on page 410, there is a shaded bullet "fill
> > 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 at 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
>
> ___________________________________________________________________________________
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200226/96031afd/attachment.htm>
More information about the ntg-context
mailing list