From: Hans Hagen via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Hans Hagen <j.hagen@freedom.nl>
Subject: [NTG-context] Re: Is there a way to apply withpattern to text, like fillcolor in lmt_outline[].
Date: Wed, 28 Aug 2024 11:01:49 +0200 [thread overview]
Message-ID: <efbe4436-caf1-4107-bbbc-8a74d816fc5d@freedom.nl> (raw)
In-Reply-To: <172483230170.3284622.13422925533617718090@cgl.ntg.nl>
On 8/28/2024 10:05 AM, ai2472206007@yeah.net wrote:
> hi ,
> Is there a way to apply withpattern to text, like fillcolor in lmt_outline[].
>
> what I envisaged:
> https://imgse.com/i/pAAkfjf
>
> I've found someone who has asked a similar question,
> just a combination of the two functions : lmt_outline[] and lmt_shade[] in that question.
>
> question from
> https://mailman.ntg.nl/archives/list/ntg-context@ntg.nl/thread/D5GBGF3RXN75UGZVHX6LDY7LXGGZKMHR/#7JS33W44JDJM355TDDPY5L4R7FJQ6QLZ
>
> However, this example didn't work successfully on the Mac,
> it just showed a background color block.
\starttext
\startMPpage
path tt ; tt := lmt_outline [
kind = "outline",
text = "\definedfont[name:texgyrepagellabold*default]foo f o o",
] xsized 12cm ;
% fill tt
% withshademethod "linear"
% withshadedirection down
% withshadecolors (red, blue) ;
draw tt
withpattern image (fill fullcircle scaled 5mm withcolor
"darkgreen" ;)
withpatternscale (1/200,1/40) ;
\stopMPpage
\stoptext
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2024-08-28 9:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-28 8:05 [NTG-context] " ai2472206007
2024-08-28 9:01 ` Hans Hagen via ntg-context [this message]
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=efbe4436-caf1-4107-bbbc-8a74d816fc5d@freedom.nl \
--to=ntg-context@ntg.nl \
--cc=j.hagen@freedom.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).