summaryrefslogtreecommitdiffstats
path: root/tests/arthur/data/qps/porter_duff2.qps
blob: a377cc256cfa839129f47d084ab15849496b20ca (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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256

translate 0 50

surface_begin 0 0 100 100

begin_block predraw
setRenderHint Antialiasing
setPen nopen
gradient_clearStops
gradient_appendStop 0    efff0000
gradient_appendStop 0.5  dfffff00
gradient_appendStop 1    ef00ff00

gradient_setSpread PadSpread
gradient_setLinear 10 10 90 90
drawEllipse 10 10 80 80
end_block

setCompositionMode SourceOver

begin_block postdraw

gradient_clearStops
gradient_appendStop 0    afff0000
gradient_appendStop 0.5  cf0000ff
gradient_appendStop 1    bf00ff00

gradient_setSpread PadSpread
gradient_setLinear 0 0 100 0
drawEllipse 10 10 30 30
drawEllipse 10 60 30 30
drawEllipse 60 60 30 30
drawEllipse 60 10 30 30
drawEllipse 35 35 30 30

# a black rectangle around
setCompositionMode SourceOver
setPen black
setBrush nobrush
drawRect 0.5 0.5 99 99

end_block
surface_end

# Destination over
surface_begin 100 0 100 100
repeat_block predraw
setCompositionMode DestinationOver
repeat_block postdraw
surface_end


# Clear
surface_begin 200 0 100 100
repeat_block predraw
setCompositionMode Clear
repeat_block postdraw
surface_end


# Source
surface_begin 300 0 100 100
repeat_block predraw
setCompositionMode Source
repeat_block postdraw
surface_end


# Destination
surface_begin 400 0 100 100
repeat_block predraw
setCompositionMode Destination
repeat_block postdraw
surface_end


# Source In
surface_begin 500 0 100 100
repeat_block predraw
setCompositionMode SourceIn
repeat_block postdraw
surface_end

translate 0 50

# Destination In
surface_begin 0 100 100 100
repeat_block predraw
setCompositionMode DestinationIn
repeat_block postdraw
surface_end


# Source Out
surface_begin 100 100 100 100
repeat_block predraw
setCompositionMode SourceOut
repeat_block postdraw
surface_end


# Destination Out
surface_begin 200 100 100 100
repeat_block predraw
setCompositionMode DestinationOut
repeat_block postdraw
surface_end


# SourceAtop
surface_begin 300 100 100 100
repeat_block predraw
setCompositionMode SourceAtop
repeat_block postdraw
surface_end


# DestinationAtop
surface_begin 400 100 100 100
repeat_block predraw
setCompositionMode DestinationAtop
repeat_block postdraw
surface_end


# Xor
surface_begin 500 100 100 100
repeat_block predraw
setCompositionMode Xor
repeat_block postdraw
surface_end

translate 0 50

# Plus
surface_begin 0 200 100 100
repeat_block predraw
setCompositionMode Plus
repeat_block postdraw
surface_end


# Multiply
surface_begin 100 200 100 100
repeat_block predraw
setCompositionMode Multiply
repeat_block postdraw
surface_end


# Screen
surface_begin 200 200 100 100
repeat_block predraw
setCompositionMode Screen
repeat_block postdraw
surface_end


# Overlay
surface_begin 300 200 100 100
repeat_block predraw
setCompositionMode Overlay
repeat_block postdraw
surface_end


# Darken
surface_begin 400 200 100 100
repeat_block predraw
setCompositionMode Darken
repeat_block postdraw
surface_end


# Lighten
surface_begin 500 200 100 100
repeat_block predraw
setCompositionMode Lighten
repeat_block postdraw
surface_end

translate 0 50

# ColorDodge
surface_begin 0 300 100 100
repeat_block predraw
setCompositionMode ColorDodge
repeat_block postdraw
surface_end


# Multiply
surface_begin 100 300 100 100
repeat_block predraw
setCompositionMode ColorBurn
repeat_block postdraw
surface_end


# Screen
surface_begin 200 300 100 100
repeat_block predraw
setCompositionMode HardLight
repeat_block postdraw
surface_end


# Overlay
surface_begin 300 300 100 100
repeat_block predraw
setCompositionMode SoftLight
repeat_block postdraw
surface_end


# Darken
surface_begin 400 300 100 100
repeat_block predraw
setCompositionMode Difference
repeat_block postdraw
surface_end


# Lighten
surface_begin 500 300 100 100
repeat_block predraw
setCompositionMode Exclusion
repeat_block postdraw
surface_end

resetMatrix

drawText 0 50 "SourceOver"
drawText 100 50 "DestinationOver"
drawText 200 50 "Clear"
drawText 300 50 "Source"
drawText 400 50 "Destination"
drawText 500 50 "SourceIn"
drawText 0 200 "DestinationIn"
drawText 100 200 "SourceOut"
drawText 200 200 "DestinationOut"
drawText 300 200 "SourceAtop"
drawText 400 200 "DestinationAtop"
drawText 500 200 "Xor"
drawText 0 350 "Plus"
drawText 100 350 "Multiply"
drawText 200 350 "Screen"
drawText 300 350 "Overlay"
drawText 400 350 "Darken"
drawText 500 350 "Lighten"
drawText 0 500 "ColorDodge"
drawText 100 500 "ColorBurn"
drawText 200 500 "HardLight"
drawText 300 500 "SoftLight"
drawText 400 500 "Difference"
drawText 500 500 "Exclusion"