I have been trying for hours.. can anyone help me? I can't fill with color the "shape" that is the lens.
\documentclass[border=12pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{intersections}
\begin{document}
\begin{tikzpicture}[scale=1]
\begin{scope}[>=latex]
\draw [->] (-3,0) -- (3,0);
\draw [->] (0,-1.25) -- (0,1.5);
\end{scope}
\definecolor{lensBlue}{RGB}{217,232,250}
\path [name path=arc1](-1.9,-1.5) arc[start angle=-90, end angle=90,radius=1.5];
\path [name path=arc2](1.9,1.5) arc[start angle=90, end angle=270,radius=1.5];
\path [name path=rect](-0.9,-0.9) rectangle (0.9,0.9);
\path [name intersections={of = arc1 and rect}];
\coordinate (A) at (intersection-1);
\coordinate (B) at (intersection-2);
\path [name intersections={of = arc2 and rect}];
\coordinate (C) at (intersection-1);
\coordinate (D) at (intersection-2);
\draw (A) -- (D);
\draw (B) -- (C) ;
\draw (-1.9,-1.5) arc[start angle=-90, end angle=90,radius=1.5];
\draw (1.9,1.5) arc[start angle=90, end angle=270,radius=1.5];
\end{tikzpicture}
\end{document}
pst-optic
provides.