I’ve racked my brain for weeks trying to create a .gif which is a moving version of what the below diagram represents.
The goal is to start with point (A) and (B) at the same position (origin) with the black lines diverging away from that point.
Then, shift (B) to the right to an arbitrary point. As (B) shifts right, it creates a pulse (the ring) that radiates outward.
As the ring radiates outward, it reveals the red lines, which diverge away from (B) as it moves.
My current progress is:
\documentclass[tikz]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\foreach\radius in{1,...,10}{
\begin{tikzpicture}
\def\innerring{\radius/10-.08}
\def\dottoinner{\radius/10+.08}
\def\outerring{\radius/10}
\draw [color=white] (-1,0) -- (1,0); %Used to keep frame the same size
\draw [color=white] (0,-1) -- (0,1); %Used to keep frame the same size
%When the dot is moving
\ifnum\numexpr\radius<4
%\draw [color=red] (\innerring, 0) -- (-\innerring,.2); %tried, failed, try again
\draw [color=red] (\innerring, 0) -- (-\dottoinner,0);
\node (A) at (\innerring, 0) [circle,fill,inner sep=.7pt]{};
%Whent the dot is no longer moving
\else
%\draw [color=red] (.4-.08, 0) -- (-\innerring*.707,\innerring*.5); %tried, failed, try again
\draw [color=red] (.4-.08, 0) -- (-\dottoinner,0);
\node (B) at (.3, 0) [circle,fill,inner sep=.7pt]{};
\fi
%The pulse of radiation
\draw [thin] (0,0) circle[radius=\outerring] node (C) {};
\draw [thin] (0,0) circle[radius=\innerring] node (D) {};
\end{tikzpicture}
}
\end{document}
Which produces the gif:
The crux of the issue is that I can't seem to come up with an expression to relate the non-horizontal lines from the point (B) to the inner circle without having them change angles as the circles expands.
All packages are available to me for this project.