Draw striped arrowhead in tikz

tikz-arrowstikz-pgf

I want to draw an arrow with a striped arrowhead using tikz. I can't find anything in the tikz docs to do this.

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}[very thick,font=\sffamily\Large]
\draw[-{Latex[length=30mm,angle'=10]}] (0,-2) -- (0,3);
\end{tikzpicture}
\end{document}

I want to make something like the below figure. Black line with arrowhead that has evenly spaced orange/white stripes:

arrowhead

Best Answer

The inset is misused, it denoted the number of stripes (including the white/transparent ones). An even number will lead to the line ending at a white stripe.

Code

\documentclass[tikz]{standalone}
\usetikzlibrary{arrows.meta, bending}
\pgfdeclarearrow{
  name = Striped Triangle,
  defaults = {
    length  = +3pt 4.5 .8,
    width'  = +0pt .75,
    inset'  = +13pt,
    angle=+60:+2.7pt +3.6,
  },
  setup code={%
    \pgfarrowssettipend{0pt}%
    \pgfarrowssetbackend{-\pgfarrowlength}%
    \pgfarrowssetlineend{\dimexpr-\pgfarrowlength+.001pt}% visual things
    \pgfarrowsupperhullpoint{0pt}{0pt}%
    \pgfarrowsupperhullpoint{-\pgfarrowlength}{.5\pgfarrowwidth}%
    \pgfarrowssavethe\pgfarrowlength
    \pgfarrowssavethe\pgfarrowwidth
    \pgfarrowssavethe\pgfarrowinset
    \pgfmathreciprocal{\pgfarrowinset}%
    \let\pgfarrowstripedtrianglefrac\pgfmathresult
    \pgfarrowssave\pgfarrowstripedtrianglefrac
  },
  drawing code={%
    \pgfmathloop % could use qicker \pgfmathmultiply@ here
      \pgfmathmultiply{\pgfmathcounter-1}{\pgfarrowstripedtrianglefrac}\let\near\pgfmathresult
      \ifdim\pgfmathcounter pt=\pgfarrowinset \def\far{1}% just use 1 instead of n*1/n
      \else
        \pgfmathmultiply{\pgfmathcounter}{\pgfarrowstripedtrianglefrac}\let\far\pgfmathresult
      \fi
      \pgfpathmoveto{\pgfqpointscale{\near}{\pgfqpoint{-\pgfarrowlength}{+.5\pgfarrowwidth}}}%
      \pgfpathlineto{\pgfqpointscale{\far }{\pgfqpoint{-\pgfarrowlength}{+.5\pgfarrowwidth}}}%
      \pgfpathlineto{\pgfqpointscale{\far }{\pgfqpoint{-\pgfarrowlength}{-.5\pgfarrowwidth}}}%
      \pgfpathlineto{\pgfqpointscale{\near}{\pgfqpoint{-\pgfarrowlength}{-.5\pgfarrowwidth}}}%
      \pgfpathclose
      \ifdim\pgfinteval{1+\pgfmathcounter}pt<\pgfarrowinset\relax
      \edef\pgfmathcounter{\pgfinteval{\pgfmathcounter+1}}%
    \repeatpgfmathloop
    \pgfusepathqfill
  },
  parameters={\the\pgfarrowlength,\the\pgfarrowwidth,\the\pgfarrowinset}
}
\tikzset{>={Striped Triangle[fill=orange, angle'=30]}}
\begin{document}
\begin{tikzpicture}[ultra thick]
\foreach[count=\i] \ang in {0, 30, ..., 359}
  \draw[-{>[inset=2*\i-1]}] (0,0) -- (\ang:.7);
\end{tikzpicture}
\begin{tikzpicture}
\foreach[count=\i] \bendmode in {quick, flex, bend}{
\tikzset{yshift=-\i cm}
\draw [red!25,line width=1mm] (-1,0) -- (1,0);
\draw [red,line width=1mm,-{[\bendmode]>.>>}]
  (-1,-.5) node[right, black] {\bendmode}
  .. controls (0,-.5) and (0,0) .. (1,0);
}
\end{tikzpicture}
\end{document}

Output

star

enter image description here