Debian Codegraph @

texmf-dist/doc/latex/visualpstricks/Source/coul2.tex

raw
1
2 \psset{unit=.6cm}
3
4 \RDD{blendmode} ({\blue \dft{} : blendmode=0})
5
6 \bigskip
7 \begin{tabular}{|c|c|c|c|}
8 \hline
9 \BS{}psset\AC{\red{blendmode=1}} & \BS{}psset\AC{\red{blendmode=2}} & \BS{}psset\AC{\red{blendmode=3}} & \BS{}psset\AC{\red{blendmode=0}} \\
10 ( type /Compatible) & (type /Screen ) & (type /Multiply) & (type /Normal) \\
11
12 \hline
13 \psset{blendmode=1}% type /Compatible
14 \begin{pspicture}(-2.5,-2.5)(2.5,2.5)
15 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
16 \psframe[fillcolor=blue,fillstyle=shape](-1,-1)(2,2)
17 \end{pspicture}
18 &
19 \psset{blendmode=2}% type /Screen
20 \begin{pspicture}(-2.5,-2.5)(2.5,2.5)
21 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
22 \psframe[fillcolor=blue,fillstyle=shape](-1,-1)(2,2)
23 \end{pspicture}
24 &
25 \psset{blendmode=3}% type /Multiply
26 \begin{pspicture}(-2.5,-2.5)(2.5,2.5)
27 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
28 \psframe[fillcolor=blue,fillstyle=shape](-1,-1)(2,2)
29 \end{pspicture}
30 &
31 \psset{blendmode=0}% type /Normal
32 \begin{pspicture}(-2.5,-2.5)(2.5,2.5)
33 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
34 \psframe[fillcolor=blue,fillstyle=shape](-1,-1)(2,2)
35 \end{pspicture}
36 \\ \hline
37 \multicolumn{4}{|c|}{ \BS{}psframe[fillcolor=red,fillstyle=\RDDD{shape}{fillstyle}](-2,-2)(1,1)
38 \BS{}psframe[fillcolor=blue,fillstyle=shape](-1,-1)(2,2)}\\
39
40 \hline
41 \end{tabular}
42 \bigskip
43
44
45 \RDD{shapealpha} ({\blue \dft{} : shapealpha=0.6})
46
47 \bigskip
48
49
50
51
52 \begin{tabular}{|c|c|c|c|c|}
53 \hline
54 &\BS{}psset\AC{blendmode=1} & \BS{}psset\AC{blendmode=2} & \BS{}psset\AC{blendmode=3} & \BS{}psset\AC{blendmode=0} \\
55 \hline
56 \begin{pspicture}(0,-2.5)(1,2.5)
57 \psTextFrame*[linecolor=white,rot=90](0,-2)(1,2){%
58 {\centering \color{red} shapealpha=0}}
59 \end{pspicture}
60 &
61 \psset{blendmode=1}% type /Compatible
62 \begin{pspicture}(-2.5,-2.5)(2.5,2.5)
63 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
64 \psframe[fillcolor=blue,fillstyle=shape,shapealpha=0](-1,-1)(2,2)
65 \end{pspicture}
66 &
67 \psset{blendmode=2}% type /Screen
68 \begin{pspicture}(-2.5,-2.5)(2.5,2.5)
69 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
70 \psframe[fillcolor=blue,fillstyle=shape,shapealpha=0](-1,-1)(2,2)
71 \end{pspicture}
72 &
73 \psset{blendmode=3}% type /Multiply
74 \begin{pspicture}(-2.5,-2.5)(2.5,2.5)
75 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
76 \psframe[fillcolor=blue,fillstyle=shape,shapealpha=0](-1,-1)(2,2)
77 \end{pspicture}
78 &
79 \psset{blendmode=0}% type /Normal
80 \begin{pspicture}(-2.5,-2.5)(2.5,2.5)
81 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
82 \psframe[fillcolor=blue,fillstyle=shape,shapealpha=0](-1,-1)(2,2)
83 \end{pspicture}\\
84
85 \hline
86 \begin{pspicture}(0,-2.5)(1,2.5)
87 \psTextFrame*[linecolor=white,rot=90](0,-2)(1,2){%
88 {\centering \color{red} shapealpha=0.3}}
89 \end{pspicture}
90 &
91 \psset{blendmode=1}% type /Compatible
92 \begin{pspicture}(-2.5,-2.5)(2.5,2.5)
93 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
94 \psframe[fillcolor=blue,fillstyle=shape,shapealpha=0.3](-1,-1)(2,2)
95 \end{pspicture}
96 &
97 \psset{blendmode=2}% type /Screen
98 \begin{pspicture}(-2.5,-2.5)(2.5,2.5)
99 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
100 \psframe[fillcolor=blue,fillstyle=shape,shapealpha=0.3](-1,-1)(2,2)
101 \end{pspicture}
102 &
103 \psset{blendmode=3}% type /Multiply
104 \begin{pspicture}(-2.5,-2.5)(2.5,2.5)
105 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
106 \psframe[fillcolor=blue,fillstyle=shape,shapealpha=0.3](-1,-1)(2,2)
107 \end{pspicture}
108 &
109 \psset{blendmode=0}% type /Normal
110 \begin{pspicture}(-2.5,-2.5)(2.5,2.5)
111 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
112 \psframe[fillcolor=blue,fillstyle=shape,shapealpha=0.3](-1,-1)(2,2)
113 \end{pspicture}\\
114
115 \hline
116 \begin{pspicture}(0,-2.5)(1,2.5)
117 \psTextFrame*[linecolor=white,rot=90](0,-2)(1,2){%
118 {\centering \color{red} shapealpha=1}}
119 \end{pspicture}
120 &
121 \psset{blendmode=1}% type /Compatible
122 \begin{pspicture}(-2.5,-2.5)(2.5,2.5)
123 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
124 \psframe[fillcolor=blue,fillstyle=shape,shapealpha=1](-1,-1)(2,2)
125 \end{pspicture}
126 &
127 \psset{blendmode=2}% type /Screen
128 \begin{pspicture}(-2.5,-2.5)(2.5,2.5)
129 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
130 \psframe[fillcolor=blue,fillstyle=shape,shapealpha=1](-1,-1)(2,2)
131 \end{pspicture}
132 &
133 \psset{blendmode=3}% type /Multiply
134 \begin{pspicture}(-2.5,-2.5)(2.5,2.5)
135 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
136 \psframe[fillcolor=blue,fillstyle=shape,shapealpha=1](-1,-1)(2,2)
137 \end{pspicture}
138 &
139 \psset{blendmode=0}% type /Normal
140 \begin{pspicture}(-2.5,-2.5)(2.5,2.5)
141 \psframe[fillcolor=red,fillstyle=shape](-2,-2)(1,1)
142 \psframe[fillcolor=blue,fillstyle=shape,shapealpha=1](-1,-1)(2,2)
143 \end{pspicture}\\
144
145 \hline
146 \multicolumn{5}{|c|}{
147 \BS{}psframe[fillcolor=blue,fillstyle=shape,shapealpha=1](-1,-1)(2,2)}\\
148
149 \hline
150 \end{tabular}
151
152
153 \psset{unit=1cm}