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: [NTG-context] Re: Gray gradient with Metapost
Date: Sat, 7 Oct 2023 15:54:33 +0000	[thread overview]
Message-ID: <CACyK-eprfCaY5qaQTFv7Ry6h17vnRwvFqAjL5m_Zy80+84ABnA@mail.gmail.com> (raw)
In-Reply-To: <0ab0cdb4-adf7-9552-d2a0-019275259cc1@fiee.net>


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

Hi,
Sorry for the late response. Thanks for the help. So I read the documents
and managed to get a gradient even if it's not exactly like the figure.
Fabrice

draw lmt_shade [
              path = (z0--z4--z5--z1--cycle),
              direction = "left",
              alternative = "linear",
              colors = {"black", "lightgray"},
            ] ;

Le ven. 6 oct. 2023 à 08:27, Henning Hraban Ramm <texml@fiee.net> a écrit :

> While the luametafun (“Metafun XL”) manual is also (meta)fun, I meant
> the general metafun(-s|-p) manual, the big one (>400 p. in the “print”
> version, >600 p. in the “screen” version). Recommended!
>
> Hraban
>
> Am 06.10.23 um 10:08 schrieb Keith McKay:
> > Also look at the LuaMetaFun manual chapter 8. In fact the whole manual
> > is worth a read. I'm sure you find much of use in it.
> > Best Wishes
> > Keith
> >
> > On Thu, 5 Oct 2023, 20:52 Henning Hraban Ramm, <texml@fiee.net
> > <mailto:texml@fiee.net>> wrote:
> >
> >     Am 05.10.23 um 21:50 schrieb Fabrice Couvreur:
> >      > Hi,
> >      > I would like to obtain, if possible, a gray gradient like in the
> >     image.
> >      > My code uses Metapost but maybe this is possible with Metafun.
> >
> >     Have a look into the Metafun manual, chapter 8.1 “shading”.
> >
> >     Hraban
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : {listname} / https://mailman.ntg.nl/mailman3/lists/{list_id}
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki     : https://wiki.contextgarden.net
>
> ___________________________________________________________________________________
>

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

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : {listname} / https://mailman.ntg.nl/mailman3/lists/{list_id}
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context 
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2023-10-07 13:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-05 19:50 [NTG-context] " Fabrice Couvreur
2023-10-05 19:51 ` [NTG-context] " Henning Hraban Ramm
2023-10-06  8:08   ` Keith McKay
2023-10-06  8:26     ` Henning Hraban Ramm
2023-10-07 15:54       ` Fabrice Couvreur [this message]
2023-10-07 16:29         ` Keith McKay

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-eprfCaY5qaQTFv7Ry6h17vnRwvFqAjL5m_Zy80+84ABnA@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).