path g=((0,0)--(5cm,0)); draw(g,Arrow(Relative(0.45))); fill(arrowhead(g,Relative(0.55)));If both of the arrowheads are to be drawn with filltype NoFill, one will need to create a specialized version of the arrow routine in
plain_arrows.asy
: void arrow(frame f, path g, pen p=currentpen, real size=0, real angle=arrowangle, filltype filltype=FillDraw, position position=EndPoint, bool forwards=true, margin margin=NoMargin, bool center=false);
path g=((0,0)--(5cm,0)); draw(reverse(g),Arrow(Relative(0.55)));
arrowsize=new real(pen p=currentpen) {return 2mm;};
arrowhead
routine in plain_arrows.asy
: arrowhead=new guide(path g, real position, pen p=currentpen, real size=0, real angle=arrowangle) { ... }If you submit your alternate arrowheads to the forum or the Patch Tracking System, we'll consider including them in a future release.
Asymptote - 13 February 2008