[NTG-context] path in LuaMetaFun

Pablo Rodriguez oinos at gmx.es
Sat Feb 20 13:19:53 CET 2021


On 2/20/21 12:59 PM, Pablo Rodriguez wrote:
> [...]
> Which is the right way to close the path or what am I missing?

I see that cycle is the way to go:

 \starttext
 \startmakeup[page][align=middle]
 \dontleavehmode
 \startMPcode{doublefun}
  path p ; p := (0,0)..(3,3.5)..(9,-3.5)..(12,0)..(9,3.5)..(3,-3.5)..(0,0);
  draw p xsized .9TextWidth withcolor .625red;
  path p ; p := (0,0)..(3,3.5)..(9,-3.5)..(12,0)..(9,3.5)..(3,-3.5)..cycle;
  draw p xsized .9TextWidth ;
 \stopMPcode
 \stopmakeup
 \stoptext

Closing without cycle gives an asymetrical path. I’d rather say it is
wrong, but this is all Greek to me.

On the other side, I’m afraid that cycle has problems with lmt_followtext.

Could anyone confirm this?

Many thanks for your help,

Pablo
--
http://www.ousia.tk


More information about the ntg-context mailing list