summaryrefslogtreecommitdiff
path: root/info/examples/PSTricks_7_de/35-00-50.ltx
blob: a9ece15114343288a68d9e745513356c33b27bda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
%% 
%%  Ein Beispiel der DANTE-Edition
%%  
%%  7. Auflage
%% 
%%  Beispiel 35-00-50 auf Seite 838.
%% 
%%  Copyright (C) 2016 Herbert Voss
%% 
%%  It may be distributed and/or modified under the conditions
%%  of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%% 
%%  See http://www.latex-project.org/lppl.txt for details.
%% 
%% 
%% ==== 
% Show page(s) 1
%% 
%% 
\documentclass[]{exaarticle}
\pagestyle{empty}
\setlength\textwidth{352.81416pt}
\setlength\parindent{0pt}
%StartShownPreambleCommands
\usepackage{pst-blur}
\usepackage{multido}
\makeatletter
\def\pstCPU{\pst@object{pstCPU}}
\def\pstCPU@i(#1)#2{{%   #1: lower left #2: text
   \psset{framearc=0.2,linecolor=gray,fillcolor=gray,fillstyle=solid}%default
   \begin@ClosedObj
   \rput[lb](#1){%
   \psframe(1.4,1.6)
   { \psset{shadow=false}%
   \multirput[lb](0,0)(0,0.3){5}{\psline[linewidth=4pt](-0.2,0.2)(1.6,0.2)}}%
   \psframe[shadow=false](1.4,1.6)%
   \rput(0.7,1.4){\footnotesize\bfseries\textsf{CPU#2}}}%
   \end@ClosedObj}
   \ignorespaces}
\makeatother
%StopShownPreambleCommands
\begin{document}
\begin{pspicture}(0,0)(8,1.5)
\multido{\rA=0+2,\iB=0+1}{2}{\pstCPU[fillcolor=red!50](\rA,0){-\iB}}
\psset{shadow,blur,shadowsize=10pt}
\pstCPU[fillcolor=blue!20,blurradius=5pt,linecolor=black](4,0){-X}
\pstCPU[linecolor=black,blurradius=5pt](6,0){-XX}
\end{pspicture}
\end{document}