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


setRenderHint LineAntialiasing

translate 20 20
path_moveTo fullSize 0 0
path_cubicTo fullSize 200 100 -100 100 100 0

path_moveTo fullSize 0 200
path_cubicTo fullSize 0 100 100 100 100 200

path_moveTo fullSize 0 250
path_cubicTo fullSize 50 200 50 200 100 250
drawPath fullSize

translate 110 0
scale 10 10
path_moveTo medSize 0 0
path_cubicTo medSize 20 10 -10 10 10 0

path_moveTo medSize 0 20
path_cubicTo medSize 0 10 10 10 10 20

path_moveTo medSize 0 25
path_cubicTo medSize 5 20 5 20 10 25
drawPath medSize

resetMatrix
translate 240 20
scale 100 100
path_moveTo smallSize 0 0
path_cubicTo smallSize 2 1 -1 1 1 0

path_moveTo smallSize 0 2
path_cubicTo smallSize 0 1 1 1 1 2

path_moveTo smallSize 0 2.5
path_cubicTo smallSize 0.5 2  0.5 2  1 2.5
drawPath smallSize

resetMatrix
translate 20 300
drawPath medSize

resetMatrix
translate 250 -100
path_moveTo maxSize 0 500
path_cubicTo maxSize 1000 0 -500 0 500 500
drawPath maxSize

setRenderHint Antialiasing off
resetMatrix

path_moveTo path1 0 0
path_cubicTo path1 10 10 0 10 10 0

path_moveTo path2 0 0
path_cubicTo path2 15 15 -5 15 10 0

path_moveTo path3 0 0
path_cubicTo path3 20 20 -10 20 10 0

path_moveTo path4 0 0
path_cubicTo path4 0 5 10 10 0 15

path_moveTo path5 0 10
path_cubicTo path5 10 10 -10 20 0 0

path_moveTo path6 0 0
path_cubicTo path6 10 5 -10 10 0 15

setPen black 2
setBrush nobrush

translate 10 500
scale 3 3
begin_block paths
save
drawPath path1
translate 20 0
drawPath path2
translate 20 0
drawPath path3
translate 20 0
drawPath path4
translate 20 0
drawPath path5
translate 20 0
drawPath path6
restore
end_block

setPen nopen
setBrush black

translate 0 20
repeat_block paths

setRenderHint Antialiasing

setPen black 2
setBrush nobrush

translate  120 -20
repeat_block paths

setPen nopen
setBrush black

translate 0 20
repeat_block paths

resetMatrix
path_moveTo miterPath 20 0
path_cubicTo miterPath 20 20 0 0 1 0
path_lineTo miterPath -1 -0.2

setBrush nobrush

translate 50 660
scale 5 5

setPen black 4 solidline flatcap miterjoin
drawPath miterPath
setPen red 0
drawPath miterPath

path_moveTo miterPath2 21 0.2
path_lineTo miterPath2 19 0
path_cubicTo miterPath2 20 0 0 20 0 0

translate 30 0
setPen black 4 solidline flatcap miterjoin
drawPath miterPath2
setPen red 0
drawPath miterPath2

path_moveTo wonkyPath 0 0
path_cubicTo wonkyPath 5 15 20 0 17 0

translate 30 0
setPen black 4 solidline flatcap miterjoin
drawPath wonkyPath
setPen red 0
drawPath wonkyPath