* [NTG-context] how to apply gradient color to a piece of text?
@ 2024-04-07 10:48 seyal.zavira
2024-04-07 13:51 ` [NTG-context] " Keith McKay
0 siblings, 1 reply; 4+ messages in thread
From: seyal.zavira @ 2024-04-07 10:48 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* [NTG-context] Re: how to apply gradient color to a piece of text?
2024-04-07 10:48 [NTG-context] how to apply gradient color to a piece of text? seyal.zavira
@ 2024-04-07 13:51 ` Keith McKay
2024-04-07 16:41 ` Henning Hraban Ramm
0 siblings, 1 reply; 4+ messages in thread
From: Keith McKay @ 2024-04-07 13:51 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-04-07 16:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-07 10:48 [NTG-context] how to apply gradient color to a piece of text? seyal.zavira
2024-04-07 13:51 ` [NTG-context] " Keith McKay
2024-04-07 16:41 ` Henning Hraban Ramm
2024-04-07 16:56 ` Keith McKay
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).