\documentclass[12pt,pstricks,border=15pt]{standalone}
\begin{document}
\def\myFig{%
\pscustom[fillstyle=solid,fillcolor=yellow,opacity=.5]{%
\psarcn(3,0){3}{180}{90}\psarcn(1,3){2}{0}{-90}
\psarc(1,2){1}{-90}{0}\psarc(2,0){2}{90}{180}
}%
\pscustom[fillstyle=solid,fillcolor=blue,opacity=.5]{%
\psarc(0,3){3}{-90}{0}\psarcn(1,3){2}{0}{-90}
\psarcn(2,1){1}{180}{90}\psarc(2,0){2}{90}{180}
\closepath
}%
}
\begin{pspicture}(6,6)
\rput(3,3){\myFig}
\rput{-90}(3,3){\myFig}
\rput{180}(3,3){\myFig}
\rput{-270}(3,3){\myFig}
\end{pspicture}
\end{document}
上面的代码生成了这样的图像:
我该如何改变它才能产生这样的效果?
答案1
答案2
不确定这是否是想要的外观。(黄色向内位于象限 II、IV)
\documentclass[12pt,pstricks,border=15pt]{standalone}
\usepackage{graphicx}
\begin{document}
\def\myFig{%
\pscustom[fillstyle=solid,fillcolor=yellow,opacity=.5]{%
\psarcn(3,0){3}{180}{90}\psarcn(1,3){2}{0}{-90}
\psarc(1,2){1}{-90}{0}\psarc(2,0){2}{90}{180}
}%
\pscustom[fillstyle=solid,fillcolor=blue,opacity=.5]{%
\psarc(0,3){3}{-90}{0}\psarcn(1,3){2}{0}{-90}
\psarcn(2,1){1}{180}{90}\psarc(2,0){2}{90}{180}
\closepath
}%
}
\begin{pspicture}(6,6)
\rput(3,3){\myFig}
\rput(6,0){\rotatebox{90}{\myFig}}
\rput{180}(3,3){\myFig}
\rput(0,6){\rotatebox{-90}{\myFig}}
\end{pspicture}
\end{document}