I want to fill one of two of this draw but I didn't find how to use
\arcsin
in calculations.Code: Select all
\documentclass[11pt]{article}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
% \foreach \r in {0.8,1.6,...,8.4} \fill [color=gray!20](\arcsin(0.4)/\r):\right)--(\arcsin(0.4/(\r+0.4)):\r+0.4)-- (0;0)arc (\arcsin(0.4/(\r+0.4)):\arcsin(0.8/(\r+0.4)):\r)--(\arcsin(0.8/(\r)))--cycle;
% I need to use odd and even but first my pb is with :
% \pgfmathparse{\arcsin(0.4/8.4)}\let\n\pgfmathresult
% I guess that \arcsin doesn't work ...I don't know why
\draw (0,0) circle (0.1) ;
\draw (0,0) circle (0.4) ;
\foreach \y in {0.8,1.2,...,8.4}
\draw (0,0) circle (\y);
\clip (0,0) circle (8.4) ;
\foreach \x in {0.4,0.8,...,8.4}
\draw (-10,\x)--(10,\x);
\foreach \x in {0.4,0.8,...,8.4}
\draw (-10,-\x)--(10,-\x);
\draw (-10,-0.1)--(10,-0.1);
\draw (-10,0.1)--(10,0.1);
\end{tikzpicture}
\end{document}