|
1 setPen NoPen |
|
2 |
|
3 setBrush black |
|
4 drawRect 10 10 60 500 |
|
5 |
|
6 setCompositionMode SourceOrDestination |
|
7 translate 20 20 |
|
8 |
|
9 begin_block drawShape |
|
10 setBrush 0xffff0000 |
|
11 drawEllipse 5 5 30 30 |
|
12 setBrush 0xff00ff00 |
|
13 drawRect 0 0 20 20 |
|
14 setBrush 0xff0000ff |
|
15 drawRect 20 20 20 20 |
|
16 end_block |
|
17 |
|
18 begin_block loop |
|
19 setCompositionMode SourceAndDestination |
|
20 translate 0 50 |
|
21 repeat_block drawShape |
|
22 |
|
23 setCompositionMode SourceXorDestination |
|
24 translate 0 50 |
|
25 repeat_block drawShape |
|
26 |
|
27 setCompositionMode NotSourceAndNotDestination |
|
28 translate 0 50 |
|
29 repeat_block drawShape |
|
30 |
|
31 setCompositionMode NotSourceOrNotDestination |
|
32 translate 0 50 |
|
33 repeat_block drawShape |
|
34 |
|
35 setCompositionMode NotSourceXorDestination |
|
36 translate 0 50 |
|
37 repeat_block drawShape |
|
38 |
|
39 setCompositionMode NotSource |
|
40 translate 0 50 |
|
41 repeat_block drawShape |
|
42 |
|
43 setCompositionMode NotSourceAndDestination |
|
44 translate 0 50 |
|
45 repeat_block drawShape |
|
46 |
|
47 setCompositionMode SourceAndNotDestination |
|
48 translate 0 50 |
|
49 repeat_block drawShape |
|
50 end_block |
|
51 |
|
52 resetMatrix |
|
53 setCompositionMode Source |
|
54 setBrush white |
|
55 drawRect 100 10 60 500 |
|
56 translate 110 20 |
|
57 repeat_block loop |
|
58 |
|
59 resetMatrix |
|
60 setCompositionMode Source |
|
61 translate 190 20 |
|
62 repeat_block loop |
|
63 |
|
64 resetMatrix |
|
65 setPen black |
|
66 setCompositionMode SourceOver |
|
67 translate 250 45 |
|
68 drawText 20 0 "Or ROP" |
|
69 translate 0 50 |
|
70 drawText 20 0 "And ROP" |
|
71 translate 0 50 |
|
72 drawText 20 0 "Xor ROP" |
|
73 translate 0 50 |
|
74 drawText 20 0 "Nor ROP" |
|
75 translate 0 50 |
|
76 drawText 20 0 "Nand ROP" |
|
77 translate 0 50 |
|
78 drawText 0 0 "NSrcXorDst ROP" |
|
79 translate 0 50 |
|
80 drawText 20 0 "NSrc ROP" |
|
81 translate 0 50 |
|
82 drawText 0 0 "NSrcAndDst ROP" |
|
83 translate 0 50 |
|
84 drawText 0 0 "SrcAndNDst ROP" |