summaryrefslogtreecommitdiffstats
path: root/tests/auto/lancelot/scripts/deviceclipping.qps
blob: cedfc1e363c2aa33671360e662fcca1bdff6f556 (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
# Version: 1
# CheckVsReference: 5%

setBrush 0xff7f7f
setPen 0x7f0000

path_moveTo path -1000000 10000
path_cubicTo path 100 100 100 150 150 400
path_closeSubpath path

begin_block drawing

  drawPath ellipse

  drawLine -1000000 200 200 200
  drawLine 200 -1000000 200 200
  drawLine 200 200 1000000 200
  drawLine 200 200 200 1000000
  drawLine -1000000 -1000000 200 200

  drawPolygon [-1000000 100 100 -1000000 100 100]
  drawRect 300 -500000 1000000 1000000

  drawPath path
  
end_block

save
translate 20 20
setBrush #0x7f7f7fff
setPen #0x7f00007f
repeat_block drawing

translate 20 20
setRenderHint Antialiasing
setBrush #0x7f7fff7f
setPen #0x7f007f00
repeat_block drawing
restore

setPen 0x00007f 2
setRenderHint Antialiasing

drawLine 0 -200 200 200

setPen 0x007f00 10

drawLine 0 -200 200 0