[pstricks] Bluring self-created High Level Object

martin at wudika.de martin at wudika.de
Fri Jun 22 15:38:51 CEST 2007


Hello together,

I don't know how to group a self-created object in a way such that I can
apply different effects on it, e.g. to use blur shadowing.
An example may explain my concerns. I want the entire "CPU" object to use
shadowing or use a special outline. How would I attack this problem?

----------------------------8<---------------------------

\documentclass{scrartcl}

\usepackage{pstricks}
\usepackage{multido}

\pagestyle{empty}

\begin{document}

\begin{pspicture}(0,0)(4,7)

\psset{fillstyle=solid}

\def\CPU{
        \multirput[lb](0,0)(0,-0.3){5}{%
                \psline[linewidth=4pt, linecolor=gray](-0.1,0.2)(1.5,0.2)
        }
        \psframebox[linecolor=gray, fillcolor=gray]{%
                \parbox[t][1.25cm][t]{1cm}{%
                        \footnotesize \textsf{CPU-\iB}
                }
        }
}

%% Draw two CPUs
\multirput[lb](0.7,3.2)(2.7,0){2}{%
        \psframebox[framearc=0.2]{%
                \parbox[t][2cm][t]{2cm}{%
                        \footnotesize \textsf{Group}
                }
        }
}
\multido{\rA=1.1+2.7, \iB=0+1}{2}{%
        \rput[lb](\rA,3.4){%
                \CPU
        }
}

\end{pspicture}

\end{document}

----------------------------8<---------------------------

Thanks for any help,
Martin




More information about the PSTricks mailing list