Where is the missing endgroup in the next code ?
\documentclass[tikz,margin=5pt]{standalone}
\usepackage{calc,animate}
\newcommand{\Cercle}[1]{%
\begin{tikzpicture}[thick]
\draw[->,>=stealth] (-.4pt,0) -- (4.5,0) ;
\foreach \i in {0,...,4} {
\draw (\i,0) -- (\i,-3pt) node[below] {\i} ; }
\pgfmathsetmacro\Angle{270-360*#1/3.14159}
\draw[red] (-.4pt,0) -- (#1,0) arc (270:\Angle:.5);
\end{tikzpicture}}
\begin{document}
\begin{animateinline}[controls,loop]{12}
\multiframe{10}{nxb=0+.1}{\Cercle{\nxb}}
\end{animateinline}
\end{document}



