MetaPost drawarrow dashed evenly
Hello, How does one draw a dashed arrow (without getting a dashed arrowhead)? Minimal example: \startMPpage drawarrow origin--(1cm,1cm) ; drawarrow origin--(-1cm,1cm) dashed evenly ; \stopMPpage Is this a bug? Alan
Am 15.10.2013 12:09, schrieb Alan BRASLAU:
Hello,
How does one draw a dashed arrow (without getting a dashed arrowhead)?
Minimal example:
\startMPpage drawarrow origin--(1cm,1cm) ; drawarrow origin--(-1cm,1cm) dashed evenly ; \stopMPpage
Is this a bug?
works here with beta from 13.10.2013 Peter
Alan ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
On 10/15/2013 12:09 PM, Alan BRASLAU wrote:
Hello,
How does one draw a dashed arrow (without getting a dashed arrowhead)?
Minimal example:
\startMPpage drawarrow origin--(1cm,1cm) ; drawarrow origin--(-1cm,1cm) dashed evenly ; \stopMPpage
Is this a bug?
more a side effect def _finarr text t = if autoarrows : set_ahlength (t) fi ; draw arrowpath _apth t ; % arrowpath added fill arrowhead _apth t ; begingroup ; save dashed ; def dashed expr d = enddef ; draw arrowhead _apth t ; endgroup ; enddef; ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 10/15/2013 1:46 PM, Hans Hagen wrote:
On 10/15/2013 12:09 PM, Alan BRASLAU wrote:
Hello,
How does one draw a dashed arrow (without getting a dashed arrowhead)?
Minimal example:
\startMPpage drawarrow origin--(1cm,1cm) ; drawarrow origin--(-1cm,1cm) dashed evenly ; \stopMPpage
Is this a bug?
more a side effect
def _finarr text t = if autoarrows : set_ahlength (t) fi ; draw arrowpath _apth t ; % arrowpath added fill arrowhead _apth t ; begingroup ; save dashed ; def dashed expr d = enddef ; draw arrowhead _apth t ; endgroup ; enddef;
or: def _finarr text t = if autoarrows : set_ahlength (t) fi ; draw arrowpath _apth t ; % arrowpath added fill arrowhead _apth t ; draw arrowhead _apth t dashed nullpicture ; enddef; ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 10/15/2013 1:49 PM, Hans Hagen wrote:
On 10/15/2013 1:46 PM, Hans Hagen wrote:
On 10/15/2013 12:09 PM, Alan BRASLAU wrote:
Hello,
How does one draw a dashed arrow (without getting a dashed arrowhead)?
Minimal example:
\startMPpage drawarrow origin--(1cm,1cm) ; drawarrow origin--(-1cm,1cm) dashed evenly ; \stopMPpage
Is this a bug?
more a side effect
def _finarr text t = if autoarrows : set_ahlength (t) fi ; draw arrowpath _apth t ; % arrowpath added fill arrowhead _apth t ; begingroup ; save dashed ; def dashed expr d = enddef ; draw arrowhead _apth t ; endgroup ; enddef;
or:
def _finarr text t = if autoarrows : set_ahlength (t) fi ; draw arrowpath _apth t ; % arrowpath added fill arrowhead _apth t ; draw arrowhead _apth t dashed nullpicture ; enddef;
To be complete I've added an undashed operator: \startMPpage drawarrow origin--(1cm, 1cm) dashed evenly withcolor red undashed ; drawarrow origin--(1cm,-1cm) dashed evenly withcolor blue ; \stopMPpage ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Alan BRASLAU
-
Hans Hagen
-
Peter Rolf