[ drawing lines with metafun ]

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? .Floris

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. Hraban

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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Henning Hraban Ramm
-
vm