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.

Best Wishes

Keith

%%%%%%%%%%%%%%%

\startMPcode
vardef tst (expr x, y, i, n) =
definecolor [ name = "MyColor1", r = uniformdeviate(1), g = uniformdeviate(1), b = uniformdeviate(1) ] ;
definecolor [ name = "MyColor2", r = uniformdeviate(1), g = uniformdeviate(1), b = uniformdeviate(1) ] ;
draw lmt_outline [
text = "Ein",
kind = "both",
fillcolor = "MyColor1",
drawcolor = "MyColor2",
rulethickness = 1/2,
]ysized (30+5*i/n) shifted (10x,10y) rotatedaround(origin,uniformdeviate(360));
enddef ;
draw lmt_poisson [
width = 20,
height = 20,
distance = 1,
count = 20,
macro = "tst"
arguments = 4,
] xsized 6cm ;
\stopMPcode

On 08/07/2023 15:28, Henning Hraban Ramm wrote:
Am 08.07.23 um 15:14 schrieb Keith McKay:
I played about with the number of shadow layers and added a wee bit randomness which gave a nice effect. See the code below and the attached png.

Good idea, makes sense for big text – my captions are only 8pt, there 10 layers are already a lot, and the randomness doesn’t make a difference.

For titles, it would be nice to apply lmt_poisson to arbitrary paths.

I wonder what’s possible if we don’t _draw_ lmt_outline but use it as a base for more fun…

Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________