# [pstricks] Bluring self-created High Level Object

Martin Röhricht martin at wudika.de
Fri Jun 22 19:59:53 CEST 2007

On 22.06.2007 18:12, Herbert Voss wrote:
> [...]

This is already a wonderful improvement. Thank you very much for all
your help and the time that you invest on other person's problems.
I was curious if it is possible to make the object look a bit more
3-dimensional, e.g. by adding a shadowing (blur) effect to it, such that
all edges are handled as if the object wasn't composed of different
smaller elements rather as if the object was coherent.

If I try the following, the result is not what it is intended to be:

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

\documentclass{scrartcl}

\usepackage{pstricks}
\usepackage{pst-blur}
\usepackage{multido}

\pagestyle{empty}
\makeatletter
\def\pstCPU{\pst at object{pstCPU}}
\def\pstCPU at i(#1)#2{{%   #1: lower left #2: text
\psset{framearc=0.2,linecolor=gray,fillcolor=gray,fillstyle=solid}%
default
\begin at ClosedObj
\rput[lb](#1){%
\multirput[lb](0,0)(0,0.3){5}{\psline[linewidth=4pt](-0.1,0.2)(1.5,0.2)}
\psframe(1.4,1.6)
\rput(0.7,1.4){\footnotesize\bfseries\textsf{CPU#2}}}
\end at ClosedObj}%
\ignorespaces%
}
\makeatother

\begin{document}

\begin{pspicture}(0,0)(4,5)
\multido{\rA=0+2,\iB=0+1}{2}{\pstCPU[fillcolor=red!50](\rA,3.4){-\iB}}
\pstCPU[linecolor=black](3,0){-XX}
\end{pspicture}

\end{document}

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

I really appreciate any help,
Martin