This question led to a new package:
You see my code and please answer my two questions:
\documentclass{article}
\usepackage{amsmath,amssymb,mathptmx}
\usepackage{pstricks}
\usepackage{pst-node}
\usepackage{auto-pst-pdf}
\begin{document}
\begin{pspicture}[showgrid](-3,-3)(8,8)%[linestyle=none]
\psclip{%
\pscircle(0,0){3}
\pscircle(4,0){3} }
\pscircle[fillcolor=blue,fillstyle=solid](2,3){3}
\endpsclip
\pscircle(0,0){3}
\pscircle(4,0){3}
\pscircle(2,3){3}
\end{pspicture}
\end{document}
The output picture:
Picture 1:
Its code (use TikZ):
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\fill[blue,even odd rule] (0,0) circle (3) (4,0) circle (3) (2,3) circle (3);
\end{tikzpicture}
My questions:
-
How to make my picture like Picture 1? Truly I don't know how to fill color to it.
-
(After completing the previous question) Do you see the TikZ code of Picture 1? Look at the important option
even odd rule
. Do PStricks have the equivalent command, macro,.. as TikZ?
Notice: I prefer PStricks to TikZ but sometimes I recognize the TikZ code is better.
Sorry if I make you being uncomfortable.
Best Answer
A PSTricks solution just for fun!
Answer 1
The stroke color is left black just for a trivial reason.
Cartesian coordinates are used in response to the request.
Answer 2
Non-zero winding rule:
Non-zero winding rule:
Even-odd rule: