When trying to draw a half colored circle, I cant tell the script where to start to draw, since the custom command uses a coordinate in polar form to start drawing using
\documentclass{beamer}
\usepackage{tikz}
\begin{document}
\NewDocumentCommand{\statcirc}{ O{#2} m }{
\begin{tikzpicture}
\fill[#2] (0,0) circle (1.0ex);
\fill[#1] (0,0) -- (90:1.5ex) arc (90:270:1.5ex) -- cycle;
\end{tikzpicture}
}
\begin{frame}
\frametitle{Frametitle}
\begin{columns}
\begin{column}{0.5\textwidth}
En un diagrama de Venn se vería
\begin{center}
\begin{tikzpicture}[scale=0.7]
\filldraw[fill=blue!20, draw=blue!60] (-2,0) circle (1.5cm);
\filldraw[fill=red!20, draw=red!60] (2,0) circle (1.5cm);
\statcirc[orange]{green}
\node at (-2,1.8) {$D_{f}=R$};
\node at (2,1.8) {$C_{f}=R_{f}$};
\node at (0,1.2) {$f$};
\node at (0,-2) {\textcolor{blue}{some text}};
\node (x1) at (-1.5,0) {};
\node (x2) at (-1.15,-0.4) {};
\node (y1) at (1,0.5) {};
\node (y3) at (1,-0.5) {};
\draw[->] (x1) -- (y1);
\end{tikzpicture}
\end{center}
\begin{document}
I cant adjust the part of
\fill[#1] (0,0) -- (90:1.5ex) arc (90:270:1.5ex) -- cycle;
since if I use a extra argument (i.e. the circle center must be at (2,0)) the draw overlaps, get ignored or get broke like the next image
When the idea is that the circle half colored be ar right of the arrow and bigger
pic
.