On 2/12/2025 12:04 PM, Henning Hraban Ramm wrote:
Am 12.02.25 um 11:34 schrieb vm via ntg-context:
is it possible when using metafun, given a path to rotate the pen
orientation following a different path?
e.g. rotating the pen while drawing a line?
and/or changing the pen width while drawing?
it probably is possible, yet how?
Any hints?
AFAIK it’s not possible to change the pen during the path.
At least that was true a few years ago.
Here's the logo of the CMS:
\startMPpage
path p ; p := fullcircle xyscaled (100,70) ;
path s ; s := nepstroke (1000) (.25 + uniformdeviate(5)) ;
path t ; t := nepstroke (100) .25sin(10*pi*strokestep/strokesteps) ;
picture c ; c := lmt_outline [text = "CMS", kind = "path" ] ;
c := c shifted -center c ;
fill p penstroked s withcolor darkblue ;
for i within c :
fill ((pathpart i) penstroked t) scaled 3
withpen pencircle scaled 3
withcolor darkred
;
endfor ;
\stopMPpage
This will keep you occupied for the rest of the day.
Hans
-----------------------------------------------------------------
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
___________________________________________________________________________________