On 8/28/2024 10:05 AM, ai2472206...@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
___________________________________________________________________________________