|
1 setPen nopen |
|
2 setBrush red |
|
3 translate 0 4 |
|
4 begin_block polys |
|
5 drawPolygon [0 0 2 -2 4 0] |
|
6 drawPolygon [0 2 2 4 4 2] |
|
7 end_block polys |
|
8 translate 6 .5 |
|
9 repeat_block polys |
|
10 translate 6.5 0 |
|
11 repeat_block polys |
|
12 translate 6 .5 |
|
13 repeat_block polys |
|
14 |
|
15 resetMatrix |
|
16 |
|
17 translate 0 12 |
|
18 setPen black |
|
19 drawPolygon [0 0 5 0 5 5 0 5] |
|
20 |
|
21 translate 10 0 |
|
22 setPen nopen |
|
23 drawPolygon [0 0 5 0 5 5 0 5] |
|
24 |
|
25 translate 10 0 |
|
26 drawPolygon [0 0 5 0 5 5 0 5] |
|
27 |
|
28 setBrush black |
|
29 path_addRect stroke -.5 -.5 6 6 |
|
30 path_addRect stroke .5 .5 4 4 |
|
31 drawPath stroke |
|
32 |
|
33 resetMatrix |
|
34 |
|
35 translate 0 65 |
|
36 |
|
37 setPen red |
|
38 drawText 0 0 "path" |
|
39 drawText 40 0 "rect" |
|
40 drawText 80 0 "img" |
|
41 drawText 120 0 "pix" |
|
42 drawText 160 0 "brush" |
|
43 setPen nopen |
|
44 |
|
45 translate 0 5 |
|
46 |
|
47 image_load border.png img |
|
48 pixmap_load border.png pix |
|
49 |
|
50 path_addRect rect 0 0 10 10 |
|
51 begin_block rects |
|
52 drawPath rect |
|
53 drawRect 40 0 10 10 |
|
54 drawImage img 80 0 |
|
55 drawPixmap pix 120 0 |
|
56 setBrush border.png |
|
57 drawRect 160 0 10 10 |
|
58 setBrush black |
|
59 end_block rects |
|
60 |
|
61 setPen red |
|
62 drawText 180 10 "0.0" |
|
63 setPen nopen |
|
64 |
|
65 translate 0.1 20 |
|
66 repeat_block rects |
|
67 setPen red |
|
68 drawText 180 10 "0.1" |
|
69 setPen nopen |
|
70 translate 0.1 20 |
|
71 repeat_block rects |
|
72 setPen red |
|
73 drawText 180 10 "0.2" |
|
74 setPen nopen |
|
75 translate 0.1 20 |
|
76 repeat_block rects |
|
77 setPen red |
|
78 drawText 180 10 "0.3" |
|
79 setPen nopen |
|
80 translate 0.1 20 |
|
81 repeat_block rects |
|
82 setPen red |
|
83 drawText 180 10 "0.4" |
|
84 setPen nopen |
|
85 translate 0.1 20 |
|
86 repeat_block rects |
|
87 setPen red |
|
88 drawText 180 10 "0.5" |
|
89 setPen nopen |
|
90 translate 0.1 20 |
|
91 repeat_block rects |
|
92 setPen red |
|
93 drawText 180 10 "0.6" |
|
94 setPen nopen |
|
95 translate 0.1 20 |
|
96 repeat_block rects |
|
97 setPen red |
|
98 drawText 180 10 "0.7" |
|
99 setPen nopen |
|
100 translate 0.1 20 |
|
101 repeat_block rects |
|
102 setPen red |
|
103 drawText 180 10 "0.8" |
|
104 setPen nopen |
|
105 translate 0.1 20 |
|
106 repeat_block rects |
|
107 setPen red |
|
108 drawText 180 10 "0.9" |
|
109 setPen nopen |
|
110 translate 0.1 20 |
|
111 repeat_block rects |
|
112 setPen red |
|
113 drawText 180 10 "1.0" |
|
114 setPen nopen |
|
115 |
|
116 resetMatrix |
|
117 |
|
118 translate 0 400 |
|
119 |
|
120 setPen red |
|
121 drawText 0 10 "path" |
|
122 drawText 0 30 "rect" |
|
123 drawText 0 50 "img" |
|
124 drawText 0 70 "pix" |
|
125 drawText 0 90 "brush" |
|
126 drawText 0 110 "stroke" |
|
127 drawText 0 130 "scale" |
|
128 drawText 0 170 "rotate" |
|
129 setPen nopen |
|
130 |
|
131 translate 50 0 |
|
132 |
|
133 begin_block rects |
|
134 drawPath rect |
|
135 drawRect 0 20 10 10 |
|
136 drawImage img 0 40 |
|
137 drawPixmap pix 0 60 |
|
138 save |
|
139 setBrush border.png |
|
140 drawRect 0 80 10 10 |
|
141 translate 0 100 |
|
142 setBrush red |
|
143 setPen black |
|
144 drawRect 0 0 10 10 |
|
145 setBrush border.png |
|
146 setPen nopen |
|
147 translate 0 20 |
|
148 scale 2 2 |
|
149 drawRect 0 0 10 10 |
|
150 translate 10 20 |
|
151 rotate 90 |
|
152 drawRect 0 0 10 10 |
|
153 restore |
|
154 end_block rects |
|
155 |
|
156 setPen red |
|
157 drawText -5 -10 "0.0" |
|
158 setPen nopen |
|
159 |
|
160 translate 40 0.1 |
|
161 repeat_block rects |
|
162 setPen red |
|
163 drawText -5 -10 "0.1" |
|
164 setPen nopen |
|
165 translate 40 0.1 |
|
166 repeat_block rects |
|
167 setPen red |
|
168 drawText -5 -10 "0.2" |
|
169 setPen nopen |
|
170 translate 40 0.1 |
|
171 repeat_block rects |
|
172 setPen red |
|
173 drawText -5 -10 "0.3" |
|
174 setPen nopen |
|
175 translate 40 0.1 |
|
176 repeat_block rects |
|
177 setPen red |
|
178 drawText -5 -10 "0.4" |
|
179 setPen nopen |
|
180 translate 40 0.1 |
|
181 repeat_block rects |
|
182 setPen red |
|
183 drawText -5 -10 "0.5" |
|
184 setPen nopen |
|
185 translate 40 0.1 |
|
186 repeat_block rects |
|
187 setPen red |
|
188 drawText -5 -10 "0.6" |
|
189 setPen nopen |
|
190 translate 40 0.1 |
|
191 repeat_block rects |
|
192 setPen red |
|
193 drawText -5 -10 "0.7" |
|
194 setPen nopen |
|
195 translate 40 0.1 |
|
196 repeat_block rects |
|
197 setPen red |
|
198 drawText -5 -10 "0.8" |
|
199 setPen nopen |
|
200 translate 40 0.1 |
|
201 repeat_block rects |
|
202 setPen red |
|
203 drawText -5 -10 "0.9" |
|
204 setPen nopen |
|
205 translate 40 0.1 |
|
206 repeat_block rects |
|
207 setPen red |
|
208 drawText -5 -10 "1.0" |
|
209 setPen nopen |
|
210 |
|
211 resetMatrix |
|
212 |
|
213 translate 0 620 |
|
214 |
|
215 setPen red |
|
216 drawText 0 10 "path" |
|
217 setPen nopen |
|
218 |
|
219 path_addRect rect2 -5 -5 10 10 |
|
220 |
|
221 translate 55 5 |
|
222 drawPath rect2 |
|
223 |
|
224 translate 20 0 |
|
225 rotate 10 |
|
226 drawPath rect2 |
|
227 rotate -10 |
|
228 translate 20 0 |
|
229 rotate 20 |
|
230 drawPath rect2 |
|
231 rotate -20 |
|
232 translate 20 0 |
|
233 rotate 30 |
|
234 drawPath rect2 |
|
235 rotate -30 |
|
236 translate 20 0 |
|
237 rotate 40 |
|
238 drawPath rect2 |
|
239 rotate -40 |
|
240 translate 20 0 |
|
241 rotate 50 |
|
242 drawPath rect2 |
|
243 rotate -50 |
|
244 translate 20 0 |
|
245 rotate 60 |
|
246 drawPath rect2 |
|
247 rotate -60 |
|
248 translate 20 0 |
|
249 rotate 70 |
|
250 drawPath rect2 |
|
251 rotate -70 |
|
252 translate 20 0 |
|
253 rotate 80 |
|
254 drawPath rect2 |
|
255 rotate -80 |
|
256 translate 20 0 |
|
257 rotate 90 |
|
258 drawPath rect2 |
|
259 rotate -90 |
|
260 |
|
261 resetMatrix |
|
262 |
|
263 translate 0 600 |
|
264 |
|
265 setPen red |
|
266 drawText 0 10 "rect" |
|
267 setPen nopen |
|
268 |
|
269 translate 55 5 |
|
270 drawRect -5 -5 10 10 |
|
271 |
|
272 translate 20 0 |
|
273 rotate 10 |
|
274 drawRect -5 -5 10 10 |
|
275 rotate -10 |
|
276 translate 20 0 |
|
277 rotate 20 |
|
278 drawRect -5 -5 10 10 |
|
279 rotate -20 |
|
280 translate 20 0 |
|
281 rotate 30 |
|
282 drawRect -5 -5 10 10 |
|
283 rotate -30 |
|
284 translate 20 0 |
|
285 rotate 40 |
|
286 drawRect -5 -5 10 10 |
|
287 rotate -40 |
|
288 translate 20 0 |
|
289 rotate 50 |
|
290 drawRect -5 -5 10 10 |
|
291 rotate -50 |
|
292 translate 20 0 |
|
293 rotate 60 |
|
294 drawRect -5 -5 10 10 |
|
295 rotate -60 |
|
296 translate 20 0 |
|
297 rotate 70 |
|
298 drawRect -5 -5 10 10 |
|
299 rotate -70 |
|
300 translate 20 0 |
|
301 rotate 80 |
|
302 drawRect -5 -5 10 10 |
|
303 rotate -80 |
|
304 translate 20 0 |
|
305 rotate 90 |
|
306 drawRect -5 -5 10 10 |
|
307 rotate -90 |
|
308 |
|
309 resetMatrix |
|
310 path_addRect vertical 0.1 0.1 0.2 10 |
|
311 |
|
312 translate 0 320 |
|
313 drawPath vertical |
|
314 translate 2.2 0 |
|
315 drawPath vertical |
|
316 translate 2.2 0 |
|
317 drawPath vertical |
|
318 translate 2.2 0 |
|
319 drawPath vertical |
|
320 translate 2.2 0 |
|
321 drawPath vertical |
|
322 |
|
323 resetMatrix |
|
324 path_addRect horizontal 0.1 0.1 10 0.2 |
|
325 |
|
326 translate 0 340 |
|
327 drawPath horizontal |
|
328 translate 0 2.2 |
|
329 drawPath horizontal |
|
330 translate 0 2.2 |
|
331 drawPath horizontal |
|
332 translate 0 2.2 |
|
333 drawPath horizontal |
|
334 translate 0 2.2 |
|
335 drawPath horizontal |
|
336 |
|
337 setOpacity 0.8 |
|
338 resetMatrix |
|
339 |
|
340 translate 0.1 24.7 |
|
341 translate 400 0 |
|
342 #rotate 88.8 |
|
343 rotate 89.9 |
|
344 setBrush red |
|
345 drawPolygon [0 0 300 0 0 173] |
|
346 setBrush green |
|
347 drawPolygon [0 173 300 0 300 173] |
|
348 |
|
349 resetMatrix |
|
350 |
|
351 translate 410 24 |
|
352 path_lineTo left 0 273 |
|
353 path_lineTo left 300 273 |
|
354 path_cubicTo left 50 273 250 0 0 0 |
|
355 |
|
356 path_cubicTo right 250 0 50 273 300 273 |
|
357 path_lineTo right 300 0 |
|
358 |
|
359 translate 310 0 |
|
360 rotate 90 |
|
361 setBrush red |
|
362 drawPath left |
|
363 setBrush green |
|
364 drawPath right |
|
365 |
|
366 resetMatrix |
|
367 translate 0.1 680.1 |
|
368 setPen red |
|
369 setOpacity 1 |
|
370 drawText 115 -20 "0.1" |
|
371 drawText 0 0 "pixmap w/ opacity" |
|
372 setOpacity 0.6 |
|
373 drawPixmap pix 120 -10 |
|
374 translate 0 20 |
|
375 setOpacity 1 |
|
376 drawText 0 0 "image w/ opacity" |
|
377 setOpacity 0.6 |
|
378 drawImage img 120 -10 |
|
379 |
|
380 resetMatrix |
|
381 path_lineTo fillpath 0 50 |
|
382 path_lineTo fillpath 50 50 |
|
383 path_moveTo fillpath 70 50 |
|
384 path_lineTo fillpath 70 100 |
|
385 path_lineTo fillpath 40 100 |
|
386 translate 500 400 |
|
387 drawPath fillpath |
|
388 |
|
389 resetMatrix |
|
390 path_moveTo vectorarne 50 10 |
|
391 path_lineTo vectorarne 50 50 |
|
392 path_lineTo vectorarne 100 50 |
|
393 path_addEllipse vectorarne 350 20 230 230 |
|
394 path_moveTo vectorarne 500 500 |
|
395 path_cubicTo vectorarne 20 20 250 30 50 150 |
|
396 translate 500 550 |
|
397 scale 0.4 0.4 |
|
398 setRenderHint antialiasing |
|
399 drawPath vectorarne |
|
400 |
|
401 resetMatrix |
|
402 translate 200 730 |
|
403 setRenderHint antialiasing off |
|
404 setOpacity 1 |
|
405 setPen red |
|
406 drawText 0 0 "outline/fill consistency" |
|
407 setPen red |
|
408 setBrush green |
|
409 translate 80 -30 |
|
410 drawPolygon [13.6965 -99.1837 -71.4767 13.823 32.4596 -33.1847] |