[Tex/LaTex] How to paint the circular sector

tikz-pgf

Using Tikz, I want to paint the circular sector (with RADIUS 2), but he paints only a triangle:

\documentclass[fullpage, 12pt]{ article}
\usepackage{tikz}
\usepackage{color}
\begin{center}
\begin{tikzpicture 
\draw[fill=gray!40] (0,0) to (1.41,-1.41) to (1.41,1.41) to (0,0) arc;
\draw[ultra thick] 
    (0,0) circle [radius=2];
\draw[thick] 
  (0,-2)--(0,2)
    (-2,0)--(2,0)
    (-1.41,-1.41)--(1.41,1.41)
    (-1.41,1.41)--(1.41,-1.41);
\end{tikzpicture}
\end{center}
\end{document}

enter image description here

Best Answer

If you change your first line to

\draw[fill=gray!40] (0,0) -- +(45:2) arc (45:-45:2);

it works. And you don't need color package because TikZ inherently uses xcolor anyways.

\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\draw[fill=gray!40] (0,0) -- +(45:2) arc (45:-45:2);
\draw[ultra thick] 
    (0,0) circle [radius=2];
\draw[thick] 
  (0,-2)--(0,2) (-2,0)--(2,0)
    (-135:2)--(45:2)
    (135:2)--(-45:2);
\end{tikzpicture}
\end{document}

enter image description here