From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 2702 invoked from network); 7 Oct 2023 13:55:58 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 7 Oct 2023 13:55:58 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id B5BD6483396 for ; Sat, 7 Oct 2023 15:55:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Pu6MaY8so_BM for ; Sat, 7 Oct 2023 15:55:05 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id DA2C9483409 for ; Sat, 7 Oct 2023 15:53:40 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id BF2AE48324C for ; Sat, 7 Oct 2023 15:53:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oJuBioasx08o for ; Sat, 7 Oct 2023 15:53:13 +0200 (CEST) Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 75401483249 for ; Sat, 7 Oct 2023 15:53:13 +0200 (CEST) Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-5230a22cfd1so5376620a12.1 for ; Sat, 07 Oct 2023 06:53:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696686793; x=1697291593; darn=ntg.nl; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=v3E0FTydSl2qMTOqxNhxjF0D4k2kcIvJkMlaoyaGldw=; b=YVhgjEl3VHWI0L2KYhuN6FFkbXXxN09keg6lIJCCAwotrErVr8iBgwb3BXi3PGhYfe p6hvUSY9PPHdoDPW4gl4imLy0oedqohvcsi4leWdpKwnll792W3snvo1NX8AXomrwyhX Ad1mXFy7eYHGZZsyUKnyzKlLVLlBJ5FXMCqvHIESiEUJ3Gh6yJUl9rHV2T0o0KtNJqyz uGz9Td/jmr8HUR9ccI6OA6T5QJMhNSh+aH8QWVvo7RebP2mL2D4OW3yXaGqMSoYogMrC AaqNi5C+QDhYh8jnco/LNnt12TnzpaccD9DvEZOZmEbZcjblJ8JdR3fItAFadU62stmE Vowg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696686793; x=1697291593; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=v3E0FTydSl2qMTOqxNhxjF0D4k2kcIvJkMlaoyaGldw=; b=r1tscwS1hb5pVBuE31GOL06O5WHAAzpMQq299gCEOdM8DH7/yNJn64SGnAvN/nD1Lp tThKtx7V22U11m8nbddKU3imKX0D0WkxvW7lx7mY15gYk7BFxSUulJPi0LSzAmY7ktzT k6zX9Cgt1UcrOtIrX04cKdugGWGypEEu31xYCq7rORs+bkKAFqG4Xa6lLABC1b342hzi X67fsIwompdJpESziRBTJtUlbYZ+Q0WZC7kneSRz/G0QvCC5iT/IM3+pdDyDQ2O+xFmp JCO0JVHYcnnucG1+XNOoI9wud8204Gcvu1Y1SW2htW8eqEiUScqK7EQ4K5FKYkA5a82S WKcg== X-Gm-Message-State: AOJu0YznQlThTQNyp8PMGsd5uFHH4hoHxot4fJspB/Uygw3KXsJvxNET jkqEvAZafDCxFeE5n6xoU4S3k9p/h+Ye2NZ2yrnvJZN+jSI= X-Google-Smtp-Source: AGHT+IHT5DdQTFo94WBDg1jERD0DTLtwa0B6Wxo5hBLqwBFYYtFPpVXTs9k7WkSsW3Wr/YwjtfYnZzXiVSqDVkVJD/s= X-Received: by 2002:a05:6402:344a:b0:523:4025:49f0 with SMTP id l10-20020a056402344a00b00523402549f0mr9176557edc.26.1696686792498; Sat, 07 Oct 2023 06:53:12 -0700 (PDT) MIME-Version: 1.0 References: <717858b0-a34e-4525-7e17-f6b86187e1c7@fiee.net> <0ab0cdb4-adf7-9552-d2a0-019275259cc1@fiee.net> In-Reply-To: <0ab0cdb4-adf7-9552-d2a0-019275259cc1@fiee.net> From: Fabrice Couvreur Date: Sat, 7 Oct 2023 15:54:33 +0000 Message-ID: To: mailing list for ConTeXt users Message-ID-Hash: I3ERP63LO3OYQBYIZ6MZENTOPSP5TL3M X-Message-ID-Hash: I3ERP63LO3OYQBYIZ6MZENTOPSP5TL3M X-MailFrom: fabrice1.couvreur@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Gray gradient with Metapost List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============3296091381822831944==" --===============3296091381822831944== Content-Type: multipart/alternative; boundary="0000000000008fe33a060720adaa" --0000000000008fe33a060720adaa Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 =3D (z0--z4--z5--z1--cycle), direction =3D "left", alternative =3D "linear", colors =3D {"black", "lightgray"}, ] ; Le ven. 6 oct. 2023 =C3=A0 08:27, Henning Hraban Ramm a = =C3=A9crit : > While the luametafun (=E2=80=9CMetafun XL=E2=80=9D) manual is also (meta)= fun, I meant > the general metafun(-s|-p) manual, the big one (>400 p. in the =E2=80=9Cp= rint=E2=80=9D > version, >600 p. in the =E2=80=9Cscreen=E2=80=9D 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, > > 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 =E2=80=9Cshading= =E2=80=9D. > > > > 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 > > _________________________________________________________________________= __________ > --0000000000008fe33a060720adaa Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,
Sorry for the late response. Thanks for the help. So I r= ead the documents and managed to get a gradient even if it's not exactl= y like the figure.
Fabrice

draw lmt_shade [
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 path =3D (z0--z4--z5--z1--cycle),
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 direction =3D "left"= ;,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 alternative =3D &quo= t;linear",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 colors = =3D {"black", "lightgray"},
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 ] ;

Le=C2=A0ven. 6 oct. 2023 =C3=A0=C2=A008:27, = Henning Hraban Ramm <texml@fiee.net> a =C3=A9crit=C2=A0:
While the luametafun (=E2=80=9CMetafun XL=E2=80=9D) manual is al= so (meta)fun, I meant
the general metafun(-s|-p) manual, the big one (>400 p. in the =E2=80=9C= print=E2=80=9D
version, >600 p. in the =E2=80=9Cscreen=E2=80=9D version). Recommended!<= br>
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@f= iee.net>> wrote:
>
>=C2=A0 =C2=A0 =C2=A0Am 05.10.23 um 21:50 schrieb Fabrice Couvreur:
>=C2=A0 =C2=A0 =C2=A0 > Hi,
>=C2=A0 =C2=A0 =C2=A0 > I would like to obtain, if possible, a gray g= radient like in the
>=C2=A0 =C2=A0 =C2=A0image.
>=C2=A0 =C2=A0 =C2=A0 > My code uses Metapost but maybe this is possi= ble with Metafun.
>
>=C2=A0 =C2=A0 =C2=A0Have a look into the Metafun manual, chapter 8.1 = =E2=80=9Cshading=E2=80=9D.
>
>=C2=A0 =C2=A0 =C2=A0Hraban

___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : {listname} / https://mailman.ntg.nl/ma= ilman3/lists/{list_id}
webpage=C2=A0 : https://www.pragma-ade.nl / https://context.aanhet.net= (mirror)
archive=C2=A0 : https://github.com/contextgarden/context=
wiki=C2=A0 =C2=A0 =C2=A0: https://wiki.contextgarden.net
___________________________________________________________________________= ________
--0000000000008fe33a060720adaa-- --===============3296091381822831944== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============3296091381822831944==--