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

On 10/15/2013 12:09 PM, Alan BRASLAU wrote:
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:
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:
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