ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Keith McKay <mckaymeister@gmail.com>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: how to apply gradient color to a piece of text?
Date: Sun, 7 Apr 2024 14:51:26 +0100	[thread overview]
Message-ID: <7cae2f83-dfe0-45f9-81f8-c8e8819c2e04@gmail.com> (raw)
In-Reply-To: <171248693023.3369328.13802605738652711411@cgl.ntg.nl>

Have a look at the posts starting on the 2 March 2021 with the subject 
heading "Shaded Large Letters in LMTX". Hans gave a great solution.

Best Wishes

Keith

On 07/04/2024 11:48, seyal.zavira@gmail.com wrote:
> hi all,
>
> when i look at luametafun manual there are some intresting examples that can apply gradient colors to metapost paths.
> how i can apply this cool feature to a piece of text?
>
> i tried the code below but it does not produce any result.
>
> \definecolor[Gleft] [h=9f9393]
> \definecolor[Gright] [h=ff1aa4]
> \startMPpage
> picture Mytext;
> Mytext := btex hello etex;
>
> draw lmt_shade [
> picture="Mytext",
> direction = "right",
> domain= { 0, 2 },
> colors= { "headerGleft", "headerGright" },
> ] ;
> \stopMPpage
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki     : https://wiki.contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
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:[~2024-04-07 13:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-07 10:48 [NTG-context] " seyal.zavira
2024-04-07 13:51 ` Keith McKay [this message]
2024-04-07 16:41   ` [NTG-context] " Henning Hraban Ramm
2024-04-07 16:56     ` 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=7cae2f83-dfe0-45f9-81f8-c8e8819c2e04@gmail.com \
    --to=mckaymeister@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).