summaryrefslogtreecommitdiffstats
path: root/tests/arthur/data/qps/filltest.qps
blob: c6112fea24ed7605dc538136241b0ba6acb2768a (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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
setPen nopen
setBrush red
translate 0 4
begin_block polys
drawPolygon [0 0 2 -2 4 0]
drawPolygon [0 2 2 4 4 2]
end_block polys
translate 6 .5
repeat_block polys
translate 6.5 0
repeat_block polys
translate 6 .5
repeat_block polys

resetMatrix

translate 0 12
setPen black
drawPolygon [0 0 5 0 5 5 0 5]

translate 10 0
setPen nopen
drawPolygon [0 0 5 0 5 5 0 5]

translate 10 0
drawPolygon [0 0 5 0 5 5 0 5]

setBrush black
path_addRect stroke -.5 -.5 6 6
path_addRect stroke .5 .5 4 4
drawPath stroke

resetMatrix

translate 0 65

setPen red
drawText 0 0 "path"
drawText 40 0 "rect"
drawText 80 0 "img"
drawText 120 0 "pix"
drawText 160 0 "brush"
setPen nopen

translate 0 5

image_load border.png img
pixmap_load border.png pix

path_addRect rect 0 0 10 10
begin_block rects
drawPath rect
drawRect 40 0 10 10
drawImage img 80 0
drawPixmap pix 120 0
setBrush border.png
drawRect 160 0 10 10
setBrush black
end_block rects

setPen red
drawText 180 10 "0.0"
setPen nopen

translate 0.1 20
repeat_block rects
setPen red
drawText 180 10 "0.1"
setPen nopen
translate 0.1 20
repeat_block rects
setPen red
drawText 180 10 "0.2"
setPen nopen
translate 0.1 20
repeat_block rects
setPen red
drawText 180 10 "0.3"
setPen nopen
translate 0.1 20
repeat_block rects
setPen red
drawText 180 10 "0.4"
setPen nopen
translate 0.1 20
repeat_block rects
setPen red
drawText 180 10 "0.5"
setPen nopen
translate 0.1 20
repeat_block rects
setPen red
drawText 180 10 "0.6"
setPen nopen
translate 0.1 20
repeat_block rects
setPen red
drawText 180 10 "0.7"
setPen nopen
translate 0.1 20
repeat_block rects
setPen red
drawText 180 10 "0.8"
setPen nopen
translate 0.1 20
repeat_block rects
setPen red
drawText 180 10 "0.9"
setPen nopen
translate 0.1 20
repeat_block rects
setPen red
drawText 180 10 "1.0"
setPen nopen

resetMatrix

translate 0 400

setPen red
drawText 0 10 "path"
drawText 0 30 "rect"
drawText 0 50 "img"
drawText 0 70 "pix"
drawText 0 90 "brush"
drawText 0 110 "stroke"
drawText 0 130 "scale"
drawText 0 170 "rotate"
setPen nopen

translate 50 0

begin_block rects
drawPath rect
drawRect 0 20 10 10
drawImage img 0 40
drawPixmap pix 0 60
save
setBrush border.png
drawRect 0 80 10 10
translate 0 100
setBrush red
setPen black
drawRect 0 0 10 10
setBrush border.png
setPen nopen
translate 0 20
scale 2 2
drawRect 0 0 10 10
translate 10 20
rotate 90
drawRect 0 0 10 10
restore
end_block rects

setPen red
drawText -5 -10 "0.0"
setPen nopen

translate 40 0.1
repeat_block rects
setPen red
drawText -5 -10 "0.1"
setPen nopen
translate 40 0.1
repeat_block rects
setPen red
drawText -5 -10 "0.2"
setPen nopen
translate 40 0.1
repeat_block rects
setPen red
drawText -5 -10 "0.3"
setPen nopen
translate 40 0.1
repeat_block rects
setPen red
drawText -5 -10 "0.4"
setPen nopen
translate 40 0.1
repeat_block rects
setPen red
drawText -5 -10 "0.5"
setPen nopen
translate 40 0.1
repeat_block rects
setPen red
drawText -5 -10 "0.6"
setPen nopen
translate 40 0.1
repeat_block rects
setPen red
drawText -5 -10 "0.7"
setPen nopen
translate 40 0.1
repeat_block rects
setPen red
drawText -5 -10 "0.8"
setPen nopen
translate 40 0.1
repeat_block rects
setPen red
drawText -5 -10 "0.9"
setPen nopen
translate 40 0.1
repeat_block rects
setPen red
drawText -5 -10 "1.0"
setPen nopen

resetMatrix

translate 0 620

setPen red
drawText 0 10 "path"
setPen nopen

path_addRect rect2 -5 -5 10 10

translate 55 5
drawPath rect2

translate 20 0
rotate 10
drawPath rect2
rotate -10
translate 20 0
rotate 20
drawPath rect2
rotate -20
translate 20 0
rotate 30
drawPath rect2
rotate -30
translate 20 0
rotate 40
drawPath rect2
rotate -40
translate 20 0
rotate 50
drawPath rect2
rotate -50
translate 20 0
rotate 60
drawPath rect2
rotate -60
translate 20 0
rotate 70
drawPath rect2
rotate -70
translate 20 0
rotate 80
drawPath rect2
rotate -80
translate 20 0
rotate 90
drawPath rect2
rotate -90

resetMatrix

translate 0 600

setPen red
drawText 0 10 "rect"
setPen nopen

translate 55 5
drawRect -5 -5 10 10

translate 20 0
rotate 10
drawRect -5 -5 10 10
rotate -10
translate 20 0
rotate 20
drawRect -5 -5 10 10
rotate -20
translate 20 0
rotate 30
drawRect -5 -5 10 10
rotate -30
translate 20 0
rotate 40
drawRect -5 -5 10 10
rotate -40
translate 20 0
rotate 50
drawRect -5 -5 10 10
rotate -50
translate 20 0
rotate 60
drawRect -5 -5 10 10
rotate -60
translate 20 0
rotate 70
drawRect -5 -5 10 10
rotate -70
translate 20 0
rotate 80
drawRect -5 -5 10 10
rotate -80
translate 20 0
rotate 90
drawRect -5 -5 10 10
rotate -90

resetMatrix
path_addRect vertical 0.1 0.1 0.2 10

translate 0 320
drawPath vertical
translate 2.2 0
drawPath vertical
translate 2.2 0
drawPath vertical
translate 2.2 0
drawPath vertical
translate 2.2 0
drawPath vertical

resetMatrix
path_addRect horizontal 0.1 0.1 10 0.2

translate 0 340
drawPath horizontal
translate 0 2.2
drawPath horizontal
translate 0 2.2
drawPath horizontal
translate 0 2.2
drawPath horizontal
translate 0 2.2
drawPath horizontal

setOpacity 0.8
resetMatrix

translate 0.1 24.7
translate 400 0
#rotate 88.8
rotate 89.9
setBrush red
drawPolygon [0 0 300 0 0 173]
setBrush green
drawPolygon [0 173 300 0 300 173]

resetMatrix

translate 410 24
path_lineTo left 0 273
path_lineTo left 300 273
path_cubicTo left 50 273 250 0 0 0

path_cubicTo right 250 0 50 273 300 273
path_lineTo right 300 0

translate 310 0
rotate 90
setBrush red
drawPath left
setBrush green
drawPath right

resetMatrix
translate 0.1 680.1
setPen red
setOpacity 1
drawText 115 -20 "0.1"
drawText 0 0 "pixmap w/ opacity"
setOpacity 0.6
drawPixmap pix 120 -10
translate 0 20
setOpacity 1
drawText 0 0 "image w/ opacity"
setOpacity 0.6
drawImage img 120 -10

resetMatrix
path_lineTo fillpath 0 50
path_lineTo fillpath 50 50
path_moveTo fillpath 70 50
path_lineTo fillpath 70 100
path_lineTo fillpath 40 100
translate 500 400
drawPath fillpath

resetMatrix
path_moveTo vectorarne 50 10
path_lineTo vectorarne 50 50
path_lineTo vectorarne 100 50
path_addEllipse vectorarne 350 20 230 230
path_moveTo vectorarne 500 500
path_cubicTo vectorarne 20 20 250 30 50 150
translate 500 550
scale 0.4 0.4
setRenderHint antialiasing
drawPath vectorarne

resetMatrix
translate 200 730
setRenderHint antialiasing off
setOpacity 1
setPen red
drawText 0 0 "outline/fill consistency"
setPen red
setBrush green
translate 80 -30
drawPolygon [13.6965 -99.1837 -71.4767 13.823 32.4596 -33.1847]