I know that I can decorate a path at evenly spaced intervals using mark=between positions 0.1 and 0.9 step 0.25 ... etc.
Is it possible to specify the points at which to draw decorations using a function? E.g., something likedecorate at f(k) for k between 0.1 and 0.9 step 0.1 ...?
Here's an example of where I might want to use such a decoration (distance between points is increasing linearly):
Code for that image:
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows,arrows.meta,decorations.markings}
\begin{document}
\begin{tikzpicture}[
scale=0.9,
decoration={
markings,
mark=at position 0.0025 with {\arrow[black,scale=0.66]{*}},
mark=at position 0.01 with {\arrow[black,scale=0.66]{*}},
mark=at position 0.0225 with {\arrow[black,scale=0.66]{*}},
mark=at position 0.04 with {\arrow[black,scale=0.66]{*}},
mark=at position 0.0625 with {\arrow[black,scale=0.66]{*}},
mark=at position 0.09 with {\arrow[black,scale=0.66]{*}},
mark=at position 0.1225 with {\arrow[black,scale=0.66]{*}},
mark=at position 0.16 with {\arrow[black,scale=0.66]{*}},
mark=at position 0.2025 with {\arrow[black,scale=0.66]{*}},
mark=at position 0.25 with {\arrow[black,scale=0.66]{*}},
mark=at position 0.3025 with {\arrow[black,scale=0.66]{*}},
mark=at position 0.36 with {\arrow[black,scale=0.66]{*}},
mark=at position 0.4225 with {\arrow[black,scale=0.66]{*}},
mark=at position 0.49 with {\arrow[black,scale=0.66]{*}},
mark=at position 0.5625 with {\arrow[black,scale=0.66]{*}},
mark=at position 0.64 with {\arrow[black,scale=0.66]{*}},
mark=at position 0.7225 with {\arrow[black,scale=0.66]{*}},
mark=at position 0.81 with {\arrow[black,scale=0.66]{*}},
mark=at position 0.9025 with {\arrow[black,scale=0.66]{*}},
mark=at position 0.0025 with {\arrow[black,scale=0.66]{*}},
},
]
\draw[gray] (0,0) grid[step=1] (8,8);
\draw[postaction={decorate},very thick, draw=red]
(3,1) node[below]{A}
to[out=30,in=270] (6,3)
to[out =90, in =-30 ] (2,4)
to[out =150, in = 225] (2,6) node[above]{B}
;
\end{tikzpicture}
\end{document}


