I´m about to create a simple figure with TikZ and I´ve no idea how to solve the following problem:
So, there is this figure consiting of two arcs an two lines (the area is filled)
Code: Select all
\documentclass[a4paper]{article}
\usepackage[english]{babel}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\filldraw[fill=black,opacity=.2]
(4,0) arc (0:180:1.5)
(0,0) arc (180:0:2.5);
\draw [line width=1pt]
(0,0) arc (180:0:2.5) --
(5,0) -- (4,0) --
(4,0) arc (0:180:1.5) -- cycle;
\end{tikzpicture}
\end{document}
May somebody can help me?
Thank you!