From: Keith McKay <mckaymeister@gmail.com>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?
Date: Sun, 7 Apr 2024 19:16:49 +0100 [thread overview]
Message-ID: <6781e32d-6d1c-4073-900e-8663444c0128@gmail.com> (raw)
In-Reply-To: <4f7d01b6-78b2-4d3e-b67d-0bcadad547c6@fiee.net>
I've found my original file and the image is as Hraban says below. The
code is the original in the post I quoted and gives a green background
with shaded colours in the text.
Best Wishes
Keith
On 07/04/2024 18:42, Henning Hraban Ramm wrote:
> Am 07.04.24 um 19:05 schrieb Hans Hagen:
>> \startMPpage
>> picture tt ; tt := lmt_outline [
>> kind = "fillup",
>> text = "\definedfont[name:texgyrepagellabold*default]foo f o
>> o",
>> ] xsized 12cm ;
>>
>> path bb ; bb := boundingbox tt ;
>> path pp ; pp := bb enlarged 2cm ;
>>
>> fill pp
>> withshademethod "linear"
>> withshadedirection down
>> withshadecolors (red, blue) ;
>>
>> draw tt withcolor green ;
>> \stopMPpage
>>
>> no need to loop over tt
>
> But the intention was to get a gradient _within_ the text.
>
> Might there be a problem with the latest changes to gradients?
>
> Hraban
>
> ___________________________________________________________________________________
>
> 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
___________________________________________________________________________________
next prev parent reply other threads:[~2024-04-07 18:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <7d6485a1-3c19-47bb-ba55-3ea15abefa2d@xs4all.nl>
2024-04-07 17:05 ` [NTG-context] " Hans Hagen
2024-04-07 17:42 ` [NTG-context] " Henning Hraban Ramm
2024-04-07 18:16 ` Keith McKay [this message]
2024-04-07 18:49 ` Hans Hagen
2024-04-08 6:22 ` seyal zavira
2024-04-08 8:37 ` Hans Hagen
2024-04-10 3:22 ` seyal zavira
2024-04-10 6:22 ` Hans Hagen
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=6781e32d-6d1c-4073-900e-8663444c0128@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).