Debian Codegraph @

tests/auto/other/lancelot/scripts/beziers.qps

raw
1 # Version: 1
2 # CheckVsReference: 5%
3
4 setRenderHint LineAntialiasing
5
6 setPen green 0
7
8 translate 20 20
9 path_moveTo fullSize 0 0
10 path_cubicTo fullSize 200 100 -100 100 100 0
11
12 path_moveTo fullSize 0 200
13 path_cubicTo fullSize 0 100 100 100 100 200
14
15 path_moveTo fullSize 0 250
16 path_cubicTo fullSize 50 200 50 200 100 250
17 drawPath fullSize
18
19 translate 110 0
20 scale 10 10
21 path_moveTo medSize 0 0
22 path_cubicTo medSize 20 10 -10 10 10 0
23
24 path_moveTo medSize 0 20
25 path_cubicTo medSize 0 10 10 10 10 20
26
27 path_moveTo medSize 0 25
28 path_cubicTo medSize 5 20 5 20 10 25
29 drawPath medSize
30
31 resetMatrix
32 translate 240 20
33 scale 100 100
34 path_moveTo smallSize 0 0
35 path_cubicTo smallSize 2 1 -1 1 1 0
36
37 path_moveTo smallSize 0 2
38 path_cubicTo smallSize 0 1 1 1 1 2
39
40 path_moveTo smallSize 0 2.5
41 path_cubicTo smallSize 0.5 2 0.5 2 1 2.5
42 drawPath smallSize
43
44 resetMatrix
45 translate 20 300
46 drawPath medSize
47
48 resetMatrix
49 translate 250 -100
50 path_moveTo maxSize 0 500
51 path_cubicTo maxSize 1000 0 -500 0 500 500
52 drawPath maxSize
53
54 setRenderHint Antialiasing off
55 resetMatrix
56
57 path_moveTo path1 0 0
58 path_cubicTo path1 10 10 0 10 10 0
59
60 path_moveTo path2 0 0
61 path_cubicTo path2 15 15 -5 15 10 0
62
63 path_moveTo path3 0 0
64 path_cubicTo path3 20 20 -10 20 10 0
65
66 path_moveTo path4 0 0
67 path_cubicTo path4 0 5 10 10 0 15
68
69 path_moveTo path5 0 10
70 path_cubicTo path5 10 10 -10 20 0 0
71
72 path_moveTo path6 0 0
73 path_cubicTo path6 10 5 -10 10 0 15
74
75 setPen black 2
76 setBrush nobrush
77
78 translate 10 500
79 scale 3 3
80 begin_block paths
81 save
82 drawPath path1
83 translate 20 0
84 drawPath path2
85 translate 20 0
86 drawPath path3
87 translate 20 0
88 drawPath path4
89 translate 20 0
90 drawPath path5
91 translate 20 0
92 drawPath path6
93 restore
94 end_block
95
96 setPen nopen
97 setBrush black
98
99 translate 0 20
100 repeat_block paths
101
102 setRenderHint Antialiasing
103
104 setPen black 2
105 setBrush nobrush
106
107 translate 120 -20
108 repeat_block paths
109
110 setPen nopen
111 setBrush black
112
113 translate 0 20
114 repeat_block paths
115
116 resetMatrix
117 path_moveTo miterPath 20 0
118 path_cubicTo miterPath 20 20 0 0 1 0
119 path_lineTo miterPath -1 -0.2
120
121 setBrush nobrush
122
123 translate 50 660
124 scale 5 5
125
126 setPen black 4 solidline flatcap miterjoin
127 drawPath miterPath
128 setPen red 0
129 drawPath miterPath
130
131 path_moveTo miterPath2 21 0.2
132 path_lineTo miterPath2 19 0
133 path_cubicTo miterPath2 20 0 0 20 0 0
134
135 translate 30 0
136 setPen black 4 solidline flatcap miterjoin
137 drawPath miterPath2
138 setPen red 0
139 drawPath miterPath2
140
141 path_moveTo wonkyPath 0 0
142 path_cubicTo wonkyPath 5 15 20 0 17 0
143
144 translate 30 0
145 setPen black 4 solidline flatcap miterjoin
146 drawPath wonkyPath
147 setPen red 0
148 drawPath wonkyPath