I want to draw in tikz a line that diffuses and a dashed path that is basically the contour of this diffused area. I think that in photoshop the diffusing effect can be done by a blurred stroke.
Is this possible?
Here is a very badly hand-drawn example:
EDIT
Thanks to the help of @percusse and @Alenanno I was able to produce almost exactly what I wanted. The only thing missing is a dashed line around the shaded area instead of the full gray line that I hacked in.
Code here:
\documentclass[margin=10pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[>=latex]
\def\lc{0.6} %Transition: 5-linear %0-infinitely sharp
\def\psz{1.0} %Potato size
\def\smss{0.92} %Smoothness: number of colors=1/(1-\smss)
%Potato
\newcommand{\potato}[1]{(0*#1,0*#1)(10*#1,-1*#1)(12*#1,10*#1)(4*#1,11*#1)(-1*#1,7*#1)}
%Crack path
\def\Ax{0} \def\Ay{0}
\def\Bx{1.5} \def\By{2}
\def\Cx{4.5} \def\Cy{4}
\def\Dx{6} \def\Dy{6}
\def\Ex{6} \def\Ey{4}
\def\Fx{8} \def\Fy{3}
\def\linepath{(\Ax,\Ay)(\Bx,\By)(\Cx,\Cy)(\Dx,\Dy)}
\def\linepathnb{(\Cx,\Cy)(\Ex,\Ey)(\Fx,\Fy)}
\begin{scope}
\clip plot [smooth cycle, tension =0.8] coordinates{ \potato{\psz}};
\draw[line cap=round,line width=105pt, black!20] plot [smooth,tension=1] coordinates{ \linepath};
\draw[line cap=round,line width=105pt, black!20] plot [smooth,tension=1] coordinates{ \linepathnb};
\foreach \x[evaluate={\xc=90*(exp(-\x/\lc)-0.9*exp(-1/\lc)*\x;}] in {1,\smss,...,0}{
\draw[line cap=round,line width=\x*100pt,black,draw=black!\xc] plot [smooth,tension=1] coordinates{ \linepath};
\draw[line cap=round,line width=\x*100pt,black,draw=black!\xc] plot [smooth,tension=1] coordinates{ \linepathnb};
}
\draw[line cap=round,line width=2pt, black] plot [smooth,tension=1] coordinates{ \linepath};
\draw[line cap=round,line width=2pt, black] plot [smooth,tension=1] coordinates{ \linepathnb};
\end{scope}
\draw [line width=5pt] plot [smooth cycle, tension =0.8] coordinates{ \potato{\psz}};
\end{tikzpicture}
\end{document}
fadings
andshadings
libraries. What do you have so far? If you post your own attempt, you are more likely to get answers. I don't think you can blur a line in TikZ. You most probably need to use a fill.