summaryrefslogtreecommitdiffstats
path: root/tests/auto/lancelot/scripts/pens_cosmetic.qps
blob: d1a60d150d1d1140bcbd4096f05b93952b523998 (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
# Version: 1
# CheckVsReference: 1% (0 0 585 470)

path_addEllipse path 22 0 7 7
path_addRect path 25 5 4 4

translate 20 20

begin_block lines
  save
    drawLine 0 0 10 10
    drawLine 2 0 10 0
    drawLine 0 2 0 10
    drawPolygon [12 0 20 0 15 10]
    drawPath path
    drawEllipse 32 0 8 8
    drawPoint 36 4

    translate 100 0
    save
      scale 4 1
      drawLine 0 0 10 10
      drawLine 2 0 10 0
      drawLine 0 2 0 10
      drawPolygon [12 0 20 0 15 10]
      drawPath path
      drawEllipse 32 0 8 8
      drawPoint 36 4
    restore

    translate 200 0
    save
      scale 1 4
      drawLine 0 0 10 10
      drawLine 2 0 10 0
      drawLine 0 2 0 10
      drawPolygon [12 0 20 0 15 10]
      drawPath path
      drawEllipse 32 0 8 8
      drawPoint 36 4
    restore

    translate 100 0
    save
      scale 4 4
      drawLine 0 0 10 10
      drawLine 2 0 10 0
      drawLine 0 2 0 10
      drawPolygon [12 0 20 0 15 10]
      drawPath path
      drawEllipse 32 0 8 8
      drawPoint 36 4
    restore
  restore
end_block

drawText 580 15 "non-cosmetic, 0-width"
translate 0 50

setPen black 2
repeat_block lines
drawText 580 15 "non-cosmetic, 2-width"

translate 0 20
translate 0 50
setPen black 0
pen_setCosmetic true
repeat_block lines
drawText 580 15 "cosmetic, 0-width"

translate 0 50
setPen black 2
pen_setCosmetic true
repeat_block lines
drawText 580 15 "cosmetic, 2-width"


setRenderHint Antialiasing
translate 0 20

translate 0 50
setPen black 0
repeat_block lines
drawText 580 15 "non-cosmetic, 0-width"

translate 0 50

setPen black 2
repeat_block lines
drawText 580 15 "non-cosmetic, 2-width"

translate 0 20
translate 0 50
setPen black 0
pen_setCosmetic true
repeat_block lines
drawText 580 15 "cosmetic, 0-width"

translate 0 50
setPen black 2
pen_setCosmetic true
repeat_block lines
drawText 580 15 "cosmetic, 2-width"


translate 0 70
drawText 0 0 "scale(1, 1)"
drawText 150 0 "scale(4, 1)"
drawText 300 0 "scale(1, 4)"
drawText 450 0 "scale(4, 4)"