I would like to have more control on fading in TikZ. Consider fading a circle radially outwards, which can be done by using inner color=transparent!0 and outer color=transparent!100. Is there a way to start the fading from the middle outwards? How can the \tikzfading be customised to account for this?

\documentclass[tikz]{standalone}
\usepackage{pgf,pgfplots}

inner color=transparent!0,
outer color=transparent!100]

\begin{document}

\begin{tikzpicture}
\end{tikzpicture}

\end{document}


Yes, of course. The way that works is that you declare a shading but with the color replaced by pgftransparent. Here is an example.

\documentclass[tikz]{standalone}
color(0pt)=(pgftransparent!0); color(12.5bp)=(pgftransparent!0);
color(25bp)=(pgftransparent!50);
color(37.5bp)=(pgftransparent!95);
color(50bp)=(pgftransparent!100)}%