[NTG-context] Re: text width shadow background

2023-07-09 Thread Keith McKay
Well this is fun.  Getting the right patterns could make some interesting with fonts. Thanks for the tip Hans! Best Wishes Keith McKay % \startMPpage vardef tst (expr x, y, i, n) = definecolor [ name = "MyColor1", r = uniformdeviate(1), g = uniformdeviate(1), b =

[NTG-context] Re: text width shadow background

2023-07-09 Thread Hans Hagen via ntg-context
On 7/9/2023 5:56 PM, Henning Hraban Ramm wrote: Am 09.07.23 um 15:49 schrieb Keith McKay: Hraban (and others), You got me thinking so I added this code to end of your code as a bit of fun. It's code from the luametafun manual to which I added two and a half lines. That’s funny. I replaced

[NTG-context] Re: text width shadow background

2023-07-09 Thread Henning Hraban Ramm
Am 09.07.23 um 15:49 schrieb Keith McKay: Hraban (and others), You got me thinking so I added this code to end of your code as a bit of fun. It's code from the luametafun manual to which I added two and a half lines. That’s funny. I replaced the text by \TeX and published it here:

[NTG-context] Re: text width shadow background

2023-07-08 Thread Henning Hraban Ramm
Please, can you explain why the result of lmt_outline is shifted to the right, if I use it in a macro? """ \setupbodyfont[ss,24pt] \definecolor[tshade][t=.05,a=1,k=1] \starttexdefinition MyCaption #1 \startMPcode steps := 5 ; % number of shadow layers rulesize := BodyFontSize/steps/3; for

[NTG-context] Re: text width shadow background

2023-07-06 Thread Henning Hraban Ramm
Am 06.07.23 um 21:27 schrieb Henning Hraban Ramm: * I don’t understand why the white fill is not opaque. Posted too early. I do understand now (overlapping outlines). Tried to fix it by overwriting the text again in white, but now I don’t understand how to calculate the shifting: """