|
1 setBrush #ff7f7fff |
|
2 setPen black 1 solidline |
|
3 translate 20 20 |
|
4 |
|
5 begin_block testblock |
|
6 save |
|
7 drawRect 0 0 10 10 |
|
8 drawRect 20 0 20 10 |
|
9 drawRect 0 20 10 20 |
|
10 drawRect 20 20 20 20 |
|
11 translate 50 0 |
|
12 setPen NoPen |
|
13 drawRect 0 0 10 10 |
|
14 drawRect 20 0 20 10 |
|
15 drawRect 0 20 10 20 |
|
16 drawRect 20 20 20 20 |
|
17 restore |
|
18 |
|
19 save |
|
20 translate 0 50 |
|
21 drawEllipse 0 0 10 10 |
|
22 drawEllipse 20 0 20 10 |
|
23 drawEllipse 0 20 10 20 |
|
24 drawEllipse 20 20 20 20 |
|
25 translate 50 0 |
|
26 setPen NoPen |
|
27 drawEllipse 0 0 10 10 |
|
28 drawEllipse 20 0 20 10 |
|
29 drawEllipse 0 20 10 20 |
|
30 drawEllipse 20 20 20 20 |
|
31 restore |
|
32 |
|
33 save |
|
34 translate 0 100 |
|
35 drawPolygon [ 0 0 30 0 30 30 10 30 10 10 40 10 40 40 0 40 ] |
|
36 save |
|
37 translate 0 50 |
|
38 drawPolygon [ 0 0 30 0 30 30 10 30 10 10 40 10 40 40 0 40 ] Winding |
|
39 translate 0 45 |
|
40 drawPolyline [ 0 0 50 0 25 25 ] |
|
41 restore |
|
42 setPen NoPen |
|
43 translate 50 0 |
|
44 drawPolygon [ 0 0 30 0 30 30 10 30 10 10 40 10 40 40 0 40 ] |
|
45 save |
|
46 translate 0 50 |
|
47 drawPolygon [ 0 0 30 0 30 30 10 30 10 10 40 10 40 40 0 40 ] Winding |
|
48 restore |
|
49 save |
|
50 translate -20 100 |
|
51 drawPie 0 0 50 50 0 1500 |
|
52 restore |
|
53 restore |
|
54 end_block |
|
55 |
|
56 setPen black 1 SolidLine FlatCap |
|
57 translate 200 0 |
|
58 scale 2 1 |
|
59 rotate 10 |
|
60 repeat_block testblock |
|
61 |
|
62 resetMatrix |
|
63 translate 0 250 |
|
64 setBrush 7f7f7fff |
|
65 translate 20 20 |
|
66 repeat_block testblock |
|
67 |
|
68 setPen black 1 SolidLine FlatCap |
|
69 translate 200 0 |
|
70 scale 2 1 |
|
71 rotate 10 |
|
72 repeat_block testblock |
|
73 |
|
74 resetMatrix |
|
75 save |
|
76 setRenderHint LineAntialiasing |
|
77 setBrush 7f7fff |
|
78 translate 20 500 |
|
79 repeat_block testblock |
|
80 |
|
81 translate 200 0 |
|
82 scale 2 1 |
|
83 rotate 10 |
|
84 repeat_block testblock |
|
85 restore |
|
86 |
|
87 setRenderHint LineAntialiasing false |
|
88 translate 420 20 |
|
89 begin_block lines |
|
90 drawLine 0 0 100 0 |
|
91 drawLine 0 0 100 10 |
|
92 drawLine 0 0 100 20 |
|
93 drawLine 0 0 100 30 |
|
94 drawLine 0 0 100 40 |
|
95 drawLine 0 0 100 50 |
|
96 drawLine 0 0 100 60 |
|
97 drawLine 0 0 100 70 |
|
98 drawLine 0 0 100 80 |
|
99 drawLine 0 0 100 90 |
|
100 drawLine 0 0 100 100 |
|
101 drawLine 0 0 90 100 |
|
102 drawLine 0 0 80 100 |
|
103 drawLine 0 0 70 100 |
|
104 drawLine 0 0 60 100 |
|
105 drawLine 0 0 50 100 |
|
106 drawLine 0 0 40 100 |
|
107 drawLine 0 0 30 100 |
|
108 drawLine 0 0 20 100 |
|
109 drawLine 0 0 10 100 |
|
110 drawLine 0 0 0 100 |
|
111 end_block |
|
112 |
|
113 setRenderHint LineAntialiasing |
|
114 translate 0 120 |
|
115 repeat_block lines |
|
116 |
|
117 translate 0 120 |
|
118 scale 5 2 |
|
119 repeat_block lines |
|
120 |
|
121 resetMatrix |
|
122 translate 420 500 |
|
123 begin_block roundedrects |
|
124 save |
|
125 drawRoundedRect 0 0 50 30 5 5 |
|
126 translate 60 0 |
|
127 drawRoundedRect 0 0 50 30 7.5 7.5 |
|
128 translate 60 0 |
|
129 drawRoundedRect 0 0 50 30 10 10 |
|
130 translate 60 0 |
|
131 drawRoundedRect 0 0 50 30 12.5 12.5 |
|
132 translate 60 0 |
|
133 drawRoundedRect 0 0 50 30 15 15 |
|
134 restore |
|
135 save |
|
136 translate 0 40 |
|
137 drawRoundedRect 0 0 50 30 20 20 RelativeSize |
|
138 translate 60 0 |
|
139 drawRoundedRect 0 0 50 30 40 40 RelativeSize |
|
140 translate 60 0 |
|
141 drawRoundedRect 0 0 50 30 60 60 RelativeSize |
|
142 translate 60 0 |
|
143 drawRoundedRect 0 0 50 30 80 80 RelativeSize |
|
144 translate 60 0 |
|
145 drawRoundedRect 0 0 50 30 100 100 RelativeSize |
|
146 restore |
|
147 end_block |
|
148 |
|
149 translate 0.5 80.5 |
|
150 repeat_block roundedrects |
|
151 |
|
152 translate -0.5 79.5 |
|
153 setRenderHint Antialiasing off |
|
154 repeat_block roundedrects |
|
155 |
|
156 resetMatrix |
|
157 setRenderHint Antialiasing off |
|
158 setPen black 1 |
|
159 begin_block drawShapes |
|
160 translate 550.5 25 |
|
161 rotate 45 |
|
162 setBrush nobrush |
|
163 drawEllipse -10 -10 20 20 |
|
164 drawLine 10 0 50 0 |
|
165 drawRect 50 -7 14 14 |
|
166 resetMatrix |
|
167 end_block |
|
168 |
|
169 setPen black 2 |
|
170 translate 25 0 |
|
171 repeat_block drawShapes |
|
172 |
|
173 setPen black 3 |
|
174 translate 50 0 |
|
175 repeat_block drawShapes |
|
176 |
|
177 setPen black 4 |
|
178 translate 75 0 |
|
179 repeat_block drawShapes |
|
180 |
|
181 resetMatrix |
|
182 setRenderHint Antialiasing off |
|
183 setPen nopen |
|
184 translate 550 100 |
|
185 setBrush #7f7f7fff |
|
186 drawRect -0.5 -0.5 21 21 |
|
187 setBrush red |
|
188 drawEllipse 0 0 20 20 |
|
189 setBrush nobrush |
|
190 setPen black |
|
191 drawEllipse 0 0 20 20 |
|
192 |
|
193 translate 25 0 |
|
194 setPen nopen |
|
195 setBrush #7f7f7fff |
|
196 drawRect 0 0 20 20 |
|
197 setBrush red |
|
198 drawEllipse 0 0 20 20 |