ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: Shading
Date: Tue, 25 Feb 2020 17:18:50 +0100	[thread overview]
Message-ID: <20200225171850.c61c0f4c523ae228a91cec33@gmail.com> (raw)
In-Reply-To: <CACyK-epROnQ6i9Y6Ja-3DA2-O2msVN-mXhJikiuV2c3yaPV-=w@mail.gmail.com>

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
___________________________________________________________________________________

  reply	other threads:[~2020-02-25 16:18 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 ` Wolfgang Schuster [this message]
2020-02-26 10:34   ` Shading Fabrice Couvreur
  -- 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=20200225171850.c61c0f4c523ae228a91cec33@gmail.com \
    --to=wolfgang.schuster.lists@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).