ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Shading
Date: Wed, 26 Feb 2020 11:34:14 +0100	[thread overview]
Message-ID: <CACyK-eqJsdr9mHkQDo0dSNqZtsQ1tr5DphmPpyoBejFW1o+CJA@mail.gmail.com> (raw)
In-Reply-To: <20200225171850.c61c0f4c523ae228a91cec33@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2106 bytes --]

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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 3710 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2020-02-26 10:34 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-25 11:34 Shading Fabrice Couvreur
2020-02-25 16:18 ` Shading Wolfgang Schuster
2020-02-26 10:34   ` Fabrice Couvreur [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-05-18 16:24 shading Hans Hagen
2011-05-18 18:30 ` shading Marco
2011-05-18 18:55   ` shading Henning Hraban Ramm
2011-05-18 19:25     ` shading Hans Hagen
2011-05-18 19:18   ` shading Hans Hagen
2011-05-18 20:24   ` shading Hans Hagen
2011-05-19 10:08     ` shading Marco
2011-05-19 10:55       ` shading Hans Hagen
2011-05-19 12:22         ` shading Marco

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACyK-eqJsdr9mHkQDo0dSNqZtsQ1tr5DphmPpyoBejFW1o+CJA@mail.gmail.com \
    --to=fabrice1.couvreur@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).