[pstricks] Bluring self-created High Level Object

Juergen Gilg gilg at acrotex.net
Fri Jun 22 20:42:21 CEST 2007


Hi Martin,

if you define your object as a polygon, you might get the desired solution.
Here some inspiration, however i am not quite sure if this leads into 
your wnated direction.

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

\pagestyle{empty}

\begin{document}

\begin{pspicture}(0,0)(4,5)
\pspolygon[linecolor=gray,fillcolor=gray,fillstyle=solid,linewidth=0pt,shadow=true,blur=true,shadowsize=3pt,shadowangle=-55](-0.2,0)(2.2,0)(2.2,0.2)(2,0.2)(2,0.4)(2.2,0.4)(2.2,0.6)(-0.2,0.6)(-0.2,0.4)(0,0.4)(0,0.2)(-0.2,0.2)
\psframe[linecolor=gray,fillcolor=red,fillstyle=solid](0,0)(2,0.6)
\rput(1,0.2){\footnotesize\bfseries\textsf{CPU}}
\end{pspicture}
\end{document}

Regards,

Juergen

Martin Röhricht wrote:
> 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}}
> \psset{shadow=true,blur=true,shadowsize=10pt}
> \pstCPU[fillcolor=blue!10,blurradius=5pt](0,0){-X}
> \pstCPU[linecolor=black](3,0){-XX}
> \end{pspicture}
>
> \end{document}
>
> ------------------------------8<----------------------------
>
> I really appreciate any help,
> Martin
> _______________________________________________
> pstricks mailing list
> pstricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
>
>
>   

-- 
  jürgen gilg
  austr. 59
  70376 stuttgart

tel       0711-59 27 88
e-mail    gilg at acrotex.net
webpage   www.acrotex.net
          www.gilligan-online.de

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20070622/40227d40/attachment.html 


More information about the PSTricks mailing list