I'm trying to draw the following figure using TikZ, but I'm stuck on how can I produce that red wave representing a photon :
Here's my code and what it produces :
\begin{tikzpicture}[>=stealth]
\filldraw[gray!40!white] (0,0)circle(0.3);
\draw[smooth] (0,0)circle(0.3);
\draw[smooth] (0,0)circle(1);
\draw[smooth] (0,0)circle(2);
\node[right] at (30:1) {$n=1$};
\node[right] at (30:2) {$n=2$};
\draw[->, smooth] (30:2)--(30:1);
\filldraw[black] (30:1)circle(0.025);
\filldraw[black] (30:2)circle(0.025);
\end{tikzpicture}
Any ideas on how to produce that ?
Best Answer
You can use
\usetikzlibrary{snakes}
:You can achieve the same by using
\usetikzlibrary{decorations.pathmorphing}
: