summaryrefslogtreecommitdiff
path: root/html/en/screenshots_src_lua.html
blob: 22a7e21a0f6b0d4f05d14177a1c2430898d1fd0b (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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<meta http-equiv="Content-Language" content="en-us">
<title>Screenshots C Source Code</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<link rel="stylesheet" type="text/css" href="../style.css">
<style type="text/css">
 p {
	margin-top: 0;
	margin-bottom: 0;
	font-family: "Courier New", Courier, monospace;
}
.style1 {
	color: #0000FF;
}
.style2 {
	color: #FF00FF;
}
.style3 {
	text-align: left;
}
.style4 {
	text-align: left;
	font-family: Arial, Helvetica, sans-serif;
}
.style5 {
	color: #008000;
}
</style>
</head>
<body>

<h2 align="center" style="text-align:center">Screenshots Lua Source Code</h2>
<p align="center" class="style4">Get the source code here:
<a href="../examples/simpledraw.lua">simpledraw.lua</a>.</p>
<p align="center" class="style3">&nbsp;</p>




<p><font SIZE="3"> <span class="style1">function</span> SimpleDraw</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">)</font></p>
<div style="margin-left: 1.4em">
<p class="style2"><font SIZE="3" COLOR="#008000">-- Get size in pixels to be 
used for computing coordinates. </font></p><p><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
h = canvas</font><font SIZE="3" COLOR="#ff00ff"><b>:</b></font><font SIZE="3">GetSize</font><font SIZE="3" COLOR="#ff00ff"><b>()</b> </font></p><p></p><p><font SIZE="3">
</font><font SIZE="3" COLOR="#008000">-- Clear the background to be white </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Background</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.WHITE</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Clear</font><font SIZE="3" COLOR="#ff00ff"><b>()</b> </font></p>
<p>&nbsp;</p><p><font SIZE="3">
</font><font SIZE="3" COLOR="#008000">-- Draw a reactangle and a polyline at 
the bottom-left area,</p>
<p>-- using a thick line with transparency.</p>
<p>-- Notice that transparency is only supported in a few drivers,</p>
<p>-- and line join is not supported in the IMAGERGB driver. </p></font><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>LineWidth</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">3</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>LineStyle</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.CONTINUOUS</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Foreground</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.EncodeAlpha</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.DARK_MAGENTA</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">128</font><font SIZE="3" COLOR="#ff00ff"><b>))</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Rect</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">100</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">200</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">100</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">200</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Begin</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.OPEN_LINES</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">300</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">250</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">320</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">270</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">350</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">260</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">340</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">200</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">310</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">210</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>End</font><font SIZE="3" COLOR="#ff00ff"><b>()</b></font><font SIZE="3" COLOR="#ff00ff">
</font></p><p></p><font SIZE="3">

<p></font><font SIZE="3" COLOR="#008000">-- Draw the red diagonal line with a 
custom line style. </p>
<p>-- Notice that line styles are not supported in the IMAGERGB driver. </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Foreground</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.RED</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>LineWidth</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">3</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p>
<p><font SIZE="3"> dashes</font><font SIZE="3">
</font><font SIZE="3" COLOR="#ff00ff"><b>=</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#ff00ff"><b>{</b></font><font SIZE="3" COLOR="#800000">20</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">15</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">5</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">5</font><font SIZE="3" COLOR="#ff00ff"><b>}</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>LineStyleDashes</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">dashes</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">4</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p>
<p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>LineStyle</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.CUSTOM</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Line</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">0</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">0</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
w</font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3" COLOR="#800000">1</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3" COLOR="#800000">1</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p>
<p>&nbsp;</p><p><font SIZE="3">
</font><font SIZE="3" COLOR="#008000">-- Draw the blue diagonal line with a 
pre-defined line style.</p>
<p>-- Notice that the pre-defined line style is dependent on the driver. </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Foreground</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.BLUE</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>LineWidth</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">10</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>LineStyle</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.DOTTED</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Line</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">0</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3" COLOR="#800000">1</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
w</font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3" COLOR="#800000">1</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">0</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p>&nbsp;</p>
<p><font SIZE="3" COLOR="#008000">-- Reset line style and width </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>LineStyle</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.CONTINUOUS</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>LineWidth</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">1</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p></p><font SIZE="3">

<p></font><font SIZE="3" COLOR="#008000">-- Draw an arc at bottom-left, and a 
sector at bottom-right.</p>
<p>-- Notice that counter-clockwise orientation of both. </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>InteriorStyle</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.SOLID</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Foreground</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.MAGENTA</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Sector</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3" COLOR="#800000">100</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">100</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">100</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">100</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">50</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">180</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Foreground</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.RED</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Arc</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">100</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">100</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">100</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">100</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">50</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">180</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p>
<p>&nbsp;</p><p><font SIZE="3">
</font><font SIZE="3" COLOR="#008000">-- Draw a solid filled rectangle at 
center. </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Foreground</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.YELLOW</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Box</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3">
</font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">100</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
w</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3">
</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">100</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3">
</font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">100</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3">
</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">100</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p>
<p>&nbsp;</p><font SIZE="3">

<p></font><font SIZE="3" COLOR="#008000">-- Prepare font for text. </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>TextAlignment</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.CENTER</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>TextOrientation</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">70</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Font</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#a31515">&quot;Times&quot;</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
cd.BOLD</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">24</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p>
<p>&nbsp;</p><p><font SIZE="3">
</font><font SIZE="3" COLOR="#008000">-- Draw text at center, with 
orientation, </p>
<p>-- and draw its bounding box. </p>
<p>-- Notice that in some drivers the bounding box is not precise. </font></p>
<p><font SIZE="3">
irect = canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>GetTextBounds</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#a31515">&quot;cdMin Draw (çãí)&quot;</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Foreground</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.RED</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Begin</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.CLOSED_LINES</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">irect</font><font SIZE="3" COLOR="#ff00ff"><b>[</b></font><font SIZE="3" COLOR="#800000">1</font><font SIZE="3" COLOR="#ff00ff"><b>],</b></font><font SIZE="3"> 
irect</font><font SIZE="3" COLOR="#ff00ff"><b>[</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>])</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">irect</font><font SIZE="3" COLOR="#ff00ff"><b>[</b></font><font SIZE="3" COLOR="#800000">3</font><font SIZE="3" COLOR="#ff00ff"><b>],</b></font><font SIZE="3"> 
irect</font><font SIZE="3" COLOR="#ff00ff"><b>[</b></font><font SIZE="3" COLOR="#800000">4</font><font SIZE="3" COLOR="#ff00ff"><b>])</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">irect</font><font SIZE="3" COLOR="#ff00ff"><b>[</b></font><font SIZE="3" COLOR="#800000">5</font><font SIZE="3" COLOR="#ff00ff"><b>],</b></font><font SIZE="3"> 
irect</font><font SIZE="3" COLOR="#ff00ff"><b>[</b></font><font SIZE="3" COLOR="#800000">6</font><font SIZE="3" COLOR="#ff00ff"><b>])</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">irect</font><font SIZE="3" COLOR="#ff00ff"><b>[</b></font><font SIZE="3" COLOR="#800000">7</font><font SIZE="3" COLOR="#ff00ff"><b>],</b></font><font SIZE="3"> 
irect</font><font SIZE="3" COLOR="#ff00ff"><b>[</b></font><font SIZE="3" COLOR="#800000">8</font><font SIZE="3" COLOR="#ff00ff"><b>])</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>End</font><font SIZE="3" COLOR="#ff00ff"><b>()</b> </font></p>
<p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Foreground</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.BLUE</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Text</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#a31515">&quot;cdMin Draw (çãí)&quot;</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p>
<p>&nbsp;</p><p><font SIZE="3">
</font><font SIZE="3" COLOR="#008000">-- Prepare World Coordinates </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>wViewport</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">0</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3" COLOR="#800000">1</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3" COLOR="#800000">0</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">h</font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3" COLOR="#800000">1</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
</font><font SIZE="3" COLOR="#0000ff">if</font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>&gt;</b></font><font SIZE="3">h</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font><font SIZE="3" COLOR="#0000ff">then</font></p><p><font SIZE="3">
&nbsp;&nbsp;&nbsp;
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>wWindow</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">0</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3">h</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3" COLOR="#800000">0</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3" COLOR="#800000">1</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
</font><font SIZE="3" COLOR="#0000ff">else</font></p><p><font SIZE="3">
&nbsp;&nbsp;&nbsp;
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>wWindow</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">0</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3" COLOR="#800000">1</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3" COLOR="#800000">0</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">h</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p>
<p><font SIZE="3" COLOR="#0000ff">end</font></p>
<p>&nbsp;</p><p><font SIZE="3">
</font><font SIZE="3" COLOR="#008000">-- Draw a filled blue rectangle in WC </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>wBox</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">0.20</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">0.30</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">0.40</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">0.50</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Foreground</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.RED</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p>
<p>&nbsp;</p><p><font SIZE="3">
</font><font SIZE="3" COLOR="#008000">-- Draw the diagonal of that rectangle in 
WC </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>wLine</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">0.20</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">0.40</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">0.30</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">0.50</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p>
<p>&nbsp;</p><p><font SIZE="3">
</font><font SIZE="3" COLOR="#008000">-- Prepare Vector Text in WC. </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>wVectorCharSize</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">0.07</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p>&nbsp;</p>
<p><font SIZE="3" COLOR="#008000">-- Draw vector text, and draw its 
bounding box. </p>
<p>-- We also use this text to show when we are using a contextplus driver. </font></p>
<p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Foreground</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.RED</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
</font><font SIZE="3" COLOR="#0000ff">if</font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">contextplus</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font><font SIZE="3" COLOR="#0000ff">then</font></p><p><font SIZE="3">
&nbsp;&nbsp;&nbsp;
drect = canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>wGetVectorTextBounds</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#a31515">&quot;WDj-Plus&quot;</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">0.25</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">0.35</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
</font><font SIZE="3" COLOR="#0000ff">else</font></p><p><font SIZE="3">
&nbsp;&nbsp;&nbsp;
drect = canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>wGetVectorTextBounds</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#a31515">&quot;WDj&quot;</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">0.25</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">0.35</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p>
<p><font SIZE="3" COLOR="#0000ff">end</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Begin</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.CLOSED_LINES</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>wVertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">drect</font><font SIZE="3" COLOR="#ff00ff"><b>[</b></font><font SIZE="3" COLOR="#800000">1</font><font SIZE="3" COLOR="#ff00ff"><b>],</b></font><font SIZE="3"> 
drect</font><font SIZE="3" COLOR="#ff00ff"><b>[</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>])</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>wVertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">drect</font><font SIZE="3" COLOR="#ff00ff"><b>[</b></font><font SIZE="3" COLOR="#800000">3</font><font SIZE="3" COLOR="#ff00ff"><b>],</b></font><font SIZE="3"> 
drect</font><font SIZE="3" COLOR="#ff00ff"><b>[</b></font><font SIZE="3" COLOR="#800000">4</font><font SIZE="3" COLOR="#ff00ff"><b>])</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>wVertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">drect</font><font SIZE="3" COLOR="#ff00ff"><b>[</b></font><font SIZE="3" COLOR="#800000">5</font><font SIZE="3" COLOR="#ff00ff"><b>],</b></font><font SIZE="3"> 
drect</font><font SIZE="3" COLOR="#ff00ff"><b>[</b></font><font SIZE="3" COLOR="#800000">6</font><font SIZE="3" COLOR="#ff00ff"><b>])</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>wVertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">drect</font><font SIZE="3" COLOR="#ff00ff"><b>[</b></font><font SIZE="3" COLOR="#800000">7</font><font SIZE="3" COLOR="#ff00ff"><b>],</b></font><font SIZE="3"> 
drect</font><font SIZE="3" COLOR="#ff00ff"><b>[</b></font><font SIZE="3" COLOR="#800000">8</font><font SIZE="3" COLOR="#ff00ff"><b>])</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>End</font><font SIZE="3" COLOR="#ff00ff"><b>()</b> </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>LineWidth</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>LineStyle</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.CONTINUOUS</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
</font><font SIZE="3" COLOR="#0000ff">if</font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">contextplus</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font><font SIZE="3" COLOR="#0000ff">then</font></p><p><font SIZE="3">
&nbsp;&nbsp;&nbsp;
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>wVectorText</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">0.25</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">0.35</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#a31515">&quot;WDj-Plus&quot;</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
</font><font SIZE="3" COLOR="#0000ff">else</font></p><p><font SIZE="3">
&nbsp;&nbsp;&nbsp;
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>wVectorText</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">0.25</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">0.35</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#a31515">&quot;WDj&quot;</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p>
<p><font SIZE="3" COLOR="#0000ff">end</font></p>
<p>&nbsp;</p><p><font SIZE="3" COLOR="#008000">-- Reset line width </font></p>
<p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>LineWidth</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">1</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3" COLOR="#ff00ff">&nbsp;</font></p><p><font SIZE="3">
</font><font SIZE="3" COLOR="#008000">-- Draw a filled path at center-right 
(looks like a weird fish). </p>
<p>-- Notice that in PDF the arc is necessarily a circle arc, and not an 
ellipse. </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Foreground</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.GREEN</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Begin</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.PATH</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>PathSet</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.PATH_MOVETO</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3">
</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">200</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>PathSet</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.PATH_LINETO</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3">
</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">230</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3">
</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">50</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>PathSet</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.PATH_LINETO</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3">
</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">250</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3">
</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">50</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>PathSet</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.PATH_CURVETO</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3" COLOR="#800000">150</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3" COLOR="#800000">150</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3" COLOR="#800000">200</font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3" COLOR="#800000">50</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#008000">-- control point for start </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3" COLOR="#800000">150</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3" COLOR="#800000">180</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3" COLOR="#800000">250</font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3" COLOR="#800000">50</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#008000">-- control point for end </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3" COLOR="#800000">150</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3" COLOR="#800000">180</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3" COLOR="#800000">200</font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3" COLOR="#800000">50</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#008000">-- end point </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>PathSet</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.PATH_CURVETO</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3" COLOR="#800000">150</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3" COLOR="#800000">180</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3" COLOR="#800000">150</font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3" COLOR="#800000">50</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3" COLOR="#800000">150</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3" COLOR="#800000">150</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3" COLOR="#800000">100</font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3" COLOR="#800000">50</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3" COLOR="#800000">150</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3" COLOR="#800000">300</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3" COLOR="#800000">100</font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3" COLOR="#800000">50</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>PathSet</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.PATH_LINETO</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3" COLOR="#800000">150</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3" COLOR="#800000">300</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3" COLOR="#800000">50</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>PathSet</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.PATH_ARC</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3" COLOR="#800000">300</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#008000">-- center </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">200</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">100</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#008000">-- width, height </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3" COLOR="#800000">30</font><font SIZE="3" COLOR="#ff00ff"><b>*</b></font><font SIZE="3" COLOR="#800000">1000</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3" COLOR="#800000">170</font><font SIZE="3" COLOR="#ff00ff"><b>*</b></font><font SIZE="3" COLOR="#800000">1000</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#008000">-- start angle, end angle (degrees / 1000) </p>
</font>
<p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>PathSet</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.PATH_FILL</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p>
<p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>End</font><font SIZE="3" COLOR="#ff00ff"><b>()</b> </font></p>
<p>&nbsp;</p><p><font SIZE="3">
</font><font SIZE="3" COLOR="#008000">-- Draw 3 pixels at center left. </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Pixel</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">10</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3" COLOR="#800000">0</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
cd.RED</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Pixel</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">11</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3" COLOR="#800000">1</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
cd.GREEN</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Pixel</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">12</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
cd.BLUE</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p>
<p>&nbsp;</p><p><font SIZE="3">
</font><font SIZE="3" COLOR="#008000">-- Draw 4 mark types, distributed near 
each corner. </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Foreground</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.RED</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>MarkSize</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">30</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>MarkType</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.PLUS</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Mark</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">200</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">200</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>MarkType</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.CIRCLE</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Mark</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w </font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">200</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">200</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>MarkType</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.HOLLOW_CIRCLE</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Mark</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">200</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h </font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">200</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>MarkType</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.DIAMOND</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Mark</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w </font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">200</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h </font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">200</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p>
<p>&nbsp;</p><p><font SIZE="3">
</font><font SIZE="3" COLOR="#008000">-- Draw all the line style 
possibilities at bottom. </p>
<p>-- Notice that they have some small differences between drivers. </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>LineWidth</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">1</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>LineStyle</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.CONTINUOUS</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Line</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">0</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">10</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
w</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">10</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>LineStyle</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.DASHED</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Line</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">0</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">20</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
w</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">20</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>LineStyle</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.DOTTED</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Line</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">0</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">30</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
w</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">30</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>LineStyle</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.DASH_DOT</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Line</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">0</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">40</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
w</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">40</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>LineStyle</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.DASH_DOT_DOT</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Line</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">0</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">50</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
w</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">50</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p>
<p>&nbsp;</p><p><font SIZE="3">
</font><font SIZE="3" COLOR="#008000">-- Draw all the hatch style 
possibilities in the top-left corner.</p>
<p>-- Notice that they have some small differences between drivers. </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Hatch</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.VERTICAL</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Box</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">0</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">50</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h </font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">60</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Hatch</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.FDIAGONAL</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Box</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">50</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">100</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h </font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">60</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Hatch</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.BDIAGONAL</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Box</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">100</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">150</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h </font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">60</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Hatch</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.CROSS</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Box</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">150</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">200</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h </font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">60</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Hatch</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.HORIZONTAL</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Box</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">200</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">250</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h </font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">60</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Hatch</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.DIAGCROSS</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Box</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">250</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">300</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h </font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">60</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p>
<p>&nbsp;</p><p><font SIZE="3">
</font><font SIZE="3" COLOR="#008000">-- Draw 4 regions, in diamond shape,</p>
<p>-- at top, bottom, left, right, </p>
<p>-- using different interior styles. <font SIZE="3" COLOR="#008000">
</font></p>
<p>&nbsp;</p>
<p>-- At top, not filled polygon, notice that the last line style is used. </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Begin</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.CLOSED_LINES</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h </font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">100</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3">
</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">50</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h </font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">150</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h </font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">200</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3">
</font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">50</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h </font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">150</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>End</font><font SIZE="3" COLOR="#ff00ff"><b>()</b> </font></p>
<p>&nbsp;</p><p><font SIZE="3">
</font><font SIZE="3" COLOR="#008000">-- At left, hatch filled polygon </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Hatch</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.DIAGCROSS</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Begin</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.FILL</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">100</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">150</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3">
</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">50</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">200</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">150</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3">
</font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">50</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>End</font><font SIZE="3" COLOR="#ff00ff"><b>()</b></font><font SIZE="3" COLOR="#ff00ff">
</font></p>
<p>&nbsp;</p><p><font SIZE="3">
</font><font SIZE="3" COLOR="#008000">-- At right, pattern filled polygon </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Pattern</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">pattern</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Begin</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.FILL</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w </font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">100</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w </font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">150</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3">
</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">50</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w </font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">200</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w </font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">150</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3">
</font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">50</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>End</font><font SIZE="3" COLOR="#ff00ff"><b>()</b> </font></p><p></p><font SIZE="3">

<p></font><font SIZE="3" COLOR="#008000">-- At bottom, stipple filled polygon </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Stipple</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">stipple</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Begin</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.FILL</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">100</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3">
</font><font SIZE="3" COLOR="#ff00ff"><b>+</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">50</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">150</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">200</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">w</font><font SIZE="3" COLOR="#ff00ff"><b>/</b></font><font SIZE="3" COLOR="#800000">2</font><font SIZE="3">
</font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">50</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">150</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>End</font><font SIZE="3" COLOR="#ff00ff"><b>()</b> </font></p>
<p>&nbsp;</p><p><font SIZE="3">
</font><font SIZE="3" COLOR="#008000">-- Draw two beziers at bottom-left </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Begin</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">cd.BEZIER</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">100</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">100</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">150</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">200</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">180</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">250</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">180</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">200</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">180</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">150</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">150</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">100</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Vertex</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3" COLOR="#800000">300</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">100</font><font SIZE="3" COLOR="#ff00ff"><b>)</b></font></p><font SIZE="3">

<p>canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>End</font><font SIZE="3" COLOR="#ff00ff"><b>()</b> </font></p>
<p>&nbsp;</p>
<p><font SIZE="3" COLOR="#008000">-- Draw the image on the top-right corner but 
increasing its actual size, </font></p>
<p><span class="style5">-- </span><font SIZE="3" COLOR="#008000">and uses the 
complete image </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>PutImageRectRGBA</font><font SIZE="3" COLOR="#ff00ff"><b>(</b></font><font SIZE="3">imagergba</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
w </font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">400</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3"> 
h </font><font SIZE="3" COLOR="#ff00ff"><b>-</b></font><font SIZE="3"> </font>
<font SIZE="3" COLOR="#800000">310</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">3</font><font SIZE="3" COLOR="#ff00ff"><b>*</b></font><font SIZE="3">IMAGE_SIZE</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">3</font><font SIZE="3" COLOR="#ff00ff"><b>*</b></font><font SIZE="3">IMAGE_SIZE</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">0</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">0</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">0</font><font SIZE="3" COLOR="#ff00ff"><b>,</b></font><font SIZE="3">
</font><font SIZE="3" COLOR="#800000">0</font><font SIZE="3" COLOR="#ff00ff"><b>)</b>
</font></p>
<p>&nbsp;</p>
<p><font SIZE="3" COLOR="#008000">-- Adds a new page, or </p>
<p>-- flushes the file, or</p>
<p>-- flushes the screen, or</p>
<p>-- swap the double buffer. </font></p><p><font SIZE="3">
canvas<font SIZE="3" COLOR="#ff00ff"><b>:</b></font>Flush</font><font SIZE="3" COLOR="#ff00ff"><b>()</b> </font></p>
</div>
<font SIZE="3" COLOR="#ff00ff">
<p><font SIZE="3" COLOR="#0000ff">end</font>
</font></p>




</body>

</html>