metafun paralleled does not give a parallel path
The following used to produce three parallel lines. Now it produces one straight line and two arcs. \starttext \startMPcode z0 = origin; z1 = 72dir(45); dotlabel.bot("z0", z0); draw z0--z1; draw (z0--z1) paralleled -15 withcolor red; draw (z0--z1) paralleled 15 withcolor blue; \stopMPcode \stoptext
Hi,
Le 24 août 2022 à 22:50, fv leung via ntg-context
a écrit : The following used to produce three parallel lines. Now it produces one straight line and two arcs.
\starttext
\startMPcode z0 = origin; z1 = 72dir(45); dotlabel.bot("z0", z0); draw z0--z1; draw (z0--z1) paralleled -15 withcolor red; draw (z0--z1) paralleled 15 withcolor blue; \stopMPcode
\stoptext
Your code produce three perfect parallels lines here, see attached pdf. F.
___________________________________________________________________________________ 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 ___________________________________________________________________________________
I'm seeing the line + arcs behaviour here. ConTeXt ver: 2022.08.05 11:44 LMTX fmt: 2022.8.5 int: english/english
On 25 Aug 2022, at 13:03, Fabrice L via ntg-context
wrote: Hi,
Le 24 août 2022 à 22:50, fv leung via ntg-context
a écrit : The following used to produce three parallel lines. Now it produces one straight line and two arcs.
\starttext
\startMPcode z0 = origin; z1 = 72dir(45); dotlabel.bot("z0", z0); draw z0--z1; draw (z0--z1) paralleled -15 withcolor red; draw (z0--z1) paralleled 15 withcolor blue; \stopMPcode
\stoptext
Your code produce three perfect parallels lines here, see attached pdf. F.
— Bruce Horrocks Hampshire, UK
On 8/25/2022 6:05 PM, Bruce Horrocks via ntg-context wrote:
I'm seeing the line + arcs behaviour here. fixed in upload (we had a bug in mplib .. direction is now a primitive so that one was wrong)
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 (4)
-
Bruce Horrocks
-
Fabrice L
-
fv leung
-
Hans Hagen