Using the arrow tip library, I can draw thick arrows with triangular tips, like so:
\begin{tikzpicture}
\draw[line width=2ex,
rounded corners=2ex,
triangle 90 cap reversed-triangle 90 cap
] (0,0) -| (1,1);
\end{tikzpicture}
These arrows are filled. I want just the outline of this arrow, but just using the "double" style doesn't do that. Both the start and end tip are filled:
\begin{tikzpicture}
\draw[line width=2ex,
rounded corners=2ex,
double distance between line centers=2ex,
double,
line width=1pt,
triangle 90 cap reversed-triangle 90 cap
] (0,0) -| (1,1);
\end{tikzpicture}
I think I need to create the outline of the first arrow (which is totally filled), and then draw a line along this outline. I just have no clue how I could do that.
I ended up drawing each arrow twice, as first suggested by EEva, but refined in the way that Andrew suggested. I'm using a LaTeX length to store the width of the line "around" the arrow. This width is called \DblTriCapDelta
and the tikz style that uses this length is called DblTriCap
, as it produces a triangluar capped arrow with double stroke:
\newlength{\DblTriCapDelta}
\setlength{\DblTriCapDelta}{1pt}
\tikzset{
DblTriCap/.style={
postaction={
draw,
color=white,
shorten >=1.4142\DblTriCapDelta,
shorten <=2.4142\DblTriCapDelta,
line width={\pgflinewidth-\DblTriCapDelta}
}
}
}
I have yet to define a key handler (never did that before). The current usage is:
\begin{tikzpicture}
\draw[line width=4mm,
rounded corners=4mm,
triangle 90 cap reversed-triangle 90 cap,
DblTriCap
] (0,0) -| (1,1);
\end{tikzpicture}
I'd like to be able to choose the fill colour, but didn't quite get it to work.
triangle 90 cap-triangle 90 cap reversed,
.