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@gmail.com> a écrit :
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 "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@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
___________________________________________________________________________________