summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/visualpstricks/Source/coul2.tex
blob: 096821a5fcb4f10839d1dec92270f3389affda29 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153

\psset{unit=.6cm}

 \RDD{blendmode} ({\blue \dft{} : blendmode=0})

\bigskip
\begin{tabular}{|c|c|c|c|}
\hline
\BS{}psset\AC{\red{blendmode=1}}   & \BS{}psset\AC{\red{blendmode=2}}  & \BS{}psset\AC{\red{blendmode=3}} & \BS{}psset\AC{\red{blendmode=0}} \\ 
( type /Compatible)   & (type /Screen )  & (type /Multiply) & (type /Normal) \\ 
 
\hline
\psset{blendmode=1}% type /Compatible
\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
 \psframe[fillcolor=blue,fillstyle=shape](-1,-1)(2,2)
\end{pspicture}
 &
 \psset{blendmode=2}% type /Screen 
 \begin{pspicture}(-2.5,-2.5)(2.5,2.5)
  \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
  \psframe[fillcolor=blue,fillstyle=shape](-1,-1)(2,2)
 \end{pspicture} 
   & 
\psset{blendmode=3}% type /Multiply
\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
 \psframe[fillcolor=blue,fillstyle=shape](-1,-1)(2,2)
\end{pspicture}
    &
\psset{blendmode=0}% type /Normal
\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
 \psframe[fillcolor=blue,fillstyle=shape](-1,-1)(2,2)
\end{pspicture} 
      \\ \hline 
\multicolumn{4}{|c|}{ \BS{}psframe[fillcolor=red,fillstyle=\RDDD{shape}{fillstyle}](-2,-2)(1,1)
       \BS{}psframe[fillcolor=blue,fillstyle=shape](-1,-1)(2,2)}\\

\hline 
\end{tabular} 
\bigskip


 \RDD{shapealpha} ({\blue  \dft{} : shapealpha=0.6})

\bigskip




\begin{tabular}{|c|c|c|c|c|}
\hline
&\BS{}psset\AC{blendmode=1}   & \BS{}psset\AC{blendmode=2}  & \BS{}psset\AC{blendmode=3} & \BS{}psset\AC{blendmode=0} \\ 
\hline
\begin{pspicture}(0,-2.5)(1,2.5)
\psTextFrame*[linecolor=white,rot=90](0,-2)(1,2){%
{\centering \color{red} shapealpha=0}}
\end{pspicture}
&
\psset{blendmode=1}% type /Compatible
\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
 \psframe[fillcolor=blue,fillstyle=shape,shapealpha=0](-1,-1)(2,2)
\end{pspicture}
&
\psset{blendmode=2}% type /Screen 
\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
 \psframe[fillcolor=blue,fillstyle=shape,shapealpha=0](-1,-1)(2,2)
\end{pspicture} 
&
\psset{blendmode=3}% type /Multiply
\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
 \psframe[fillcolor=blue,fillstyle=shape,shapealpha=0](-1,-1)(2,2)
\end{pspicture}
&
\psset{blendmode=0}% type /Normal
\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
 \psframe[fillcolor=blue,fillstyle=shape,shapealpha=0](-1,-1)(2,2)
\end{pspicture}\\

\hline
\begin{pspicture}(0,-2.5)(1,2.5)
\psTextFrame*[linecolor=white,rot=90](0,-2)(1,2){%
{\centering \color{red} shapealpha=0.3}}
\end{pspicture}
&
\psset{blendmode=1}% type /Compatible
\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
 \psframe[fillcolor=blue,fillstyle=shape,shapealpha=0.3](-1,-1)(2,2)
\end{pspicture}
&
\psset{blendmode=2}% type /Screen 
\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
 \psframe[fillcolor=blue,fillstyle=shape,shapealpha=0.3](-1,-1)(2,2)
\end{pspicture} 
&
\psset{blendmode=3}% type /Multiply
\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
 \psframe[fillcolor=blue,fillstyle=shape,shapealpha=0.3](-1,-1)(2,2)
\end{pspicture}
&
\psset{blendmode=0}% type /Normal
\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
 \psframe[fillcolor=blue,fillstyle=shape,shapealpha=0.3](-1,-1)(2,2)
\end{pspicture}\\

\hline
\begin{pspicture}(0,-2.5)(1,2.5)
\psTextFrame*[linecolor=white,rot=90](0,-2)(1,2){%
{\centering \color{red} shapealpha=1}}
\end{pspicture}
&
\psset{blendmode=1}% type /Compatible
\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
 \psframe[fillcolor=blue,fillstyle=shape,shapealpha=1](-1,-1)(2,2)
\end{pspicture}
&
\psset{blendmode=2}% type /Screen 
\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
 \psframe[fillcolor=blue,fillstyle=shape,shapealpha=1](-1,-1)(2,2)
\end{pspicture} 
&
\psset{blendmode=3}% type /Multiply
\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
 \psframe[fillcolor=blue,fillstyle=shape,shapealpha=1](-1,-1)(2,2)
\end{pspicture}
&
\psset{blendmode=0}% type /Normal
\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
 \psframe[fillcolor=blue,fillstyle=shape,shapealpha=1](-1,-1)(2,2)
\end{pspicture}\\

\hline 
\multicolumn{5}{|c|}{
       \BS{}psframe[fillcolor=blue,fillstyle=shape,shapealpha=1](-1,-1)(2,2)}\\

\hline  
\end{tabular}


\psset{unit=1cm}