| 1 |
# Version: 1 |
| 2 |
# CheckVsReference: 5% |
| 3 |
|
| 4 |
|
| 5 |
translate 0 50 |
| 6 |
|
| 7 |
surface_begin 0 0 100 100 |
| 8 |
|
| 9 |
begin_block predraw |
| 10 |
setRenderHint Antialiasing |
| 11 |
setPen nopen |
| 12 |
setBrush 0x7f000000 |
| 13 |
drawEllipse 10 10 80 80 |
| 14 |
end_block |
| 15 |
|
| 16 |
setCompositionMode SourceOver |
| 17 |
|
| 18 |
begin_block postdraw |
| 19 |
|
| 20 |
|
| 21 |
setBrush 0x1fff0000 |
| 22 |
drawRect 0 0 50 50 |
| 23 |
|
| 24 |
setBrush 0xdf00ff00 |
| 25 |
drawRect 50 50 50 50 |
| 26 |
|
| 27 |
setBrush 0x7f0000ff |
| 28 |
drawEllipse 30 30 40 40 |
| 29 |
|
| 30 |
# a black rectangle around |
| 31 |
setCompositionMode SourceOver |
| 32 |
setPen black |
| 33 |
setBrush nobrush |
| 34 |
drawRect 0.5 0.5 99 99 |
| 35 |
|
| 36 |
end_block |
| 37 |
surface_end |
| 38 |
|
| 39 |
|
| 40 |
# Destination over |
| 41 |
surface_begin 100 0 100 100 |
| 42 |
repeat_block predraw |
| 43 |
setCompositionMode DestinationOver |
| 44 |
repeat_block postdraw |
| 45 |
surface_end |
| 46 |
|
| 47 |
|
| 48 |
# Clear |
| 49 |
surface_begin 200 0 100 100 |
| 50 |
repeat_block predraw |
| 51 |
setCompositionMode Clear |
| 52 |
repeat_block postdraw |
| 53 |
surface_end |
| 54 |
|
| 55 |
|
| 56 |
# Source |
| 57 |
surface_begin 300 0 100 100 |
| 58 |
repeat_block predraw |
| 59 |
setCompositionMode Source |
| 60 |
repeat_block postdraw |
| 61 |
surface_end |
| 62 |
|
| 63 |
|
| 64 |
# Destination |
| 65 |
surface_begin 400 0 100 100 |
| 66 |
repeat_block predraw |
| 67 |
setCompositionMode Destination |
| 68 |
repeat_block postdraw |
| 69 |
surface_end |
| 70 |
|
| 71 |
|
| 72 |
# Source In |
| 73 |
surface_begin 500 0 100 100 |
| 74 |
repeat_block predraw |
| 75 |
setCompositionMode SourceIn |
| 76 |
repeat_block postdraw |
| 77 |
surface_end |
| 78 |
|
| 79 |
translate 0 50 |
| 80 |
|
| 81 |
# Destination In |
| 82 |
surface_begin 0 100 100 100 |
| 83 |
repeat_block predraw |
| 84 |
setCompositionMode DestinationIn |
| 85 |
repeat_block postdraw |
| 86 |
surface_end |
| 87 |
|
| 88 |
|
| 89 |
# Source Out |
| 90 |
surface_begin 100 100 100 100 |
| 91 |
repeat_block predraw |
| 92 |
setCompositionMode SourceOut |
| 93 |
repeat_block postdraw |
| 94 |
surface_end |
| 95 |
|
| 96 |
|
| 97 |
# Destination Out |
| 98 |
surface_begin 200 100 100 100 |
| 99 |
repeat_block predraw |
| 100 |
setCompositionMode DestinationOut |
| 101 |
repeat_block postdraw |
| 102 |
surface_end |
| 103 |
|
| 104 |
|
| 105 |
# SourceAtop |
| 106 |
surface_begin 300 100 100 100 |
| 107 |
repeat_block predraw |
| 108 |
setCompositionMode SourceAtop |
| 109 |
repeat_block postdraw |
| 110 |
surface_end |
| 111 |
|
| 112 |
|
| 113 |
# DestinationAtop |
| 114 |
surface_begin 400 100 100 100 |
| 115 |
repeat_block predraw |
| 116 |
setCompositionMode DestinationAtop |
| 117 |
repeat_block postdraw |
| 118 |
surface_end |
| 119 |
|
| 120 |
|
| 121 |
# Xor |
| 122 |
surface_begin 500 100 100 100 |
| 123 |
repeat_block predraw |
| 124 |
setCompositionMode Xor |
| 125 |
repeat_block postdraw |
| 126 |
surface_end |
| 127 |
|
| 128 |
translate 0 50 |
| 129 |
|
| 130 |
# Plus |
| 131 |
surface_begin 0 200 100 100 |
| 132 |
repeat_block predraw |
| 133 |
setCompositionMode Plus |
| 134 |
repeat_block postdraw |
| 135 |
surface_end |
| 136 |
|
| 137 |
|
| 138 |
# Multiply |
| 139 |
surface_begin 100 200 100 100 |
| 140 |
repeat_block predraw |
| 141 |
setCompositionMode Multiply |
| 142 |
repeat_block postdraw |
| 143 |
surface_end |
| 144 |
|
| 145 |
|
| 146 |
# Screen |
| 147 |
surface_begin 200 200 100 100 |
| 148 |
repeat_block predraw |
| 149 |
setCompositionMode Screen |
| 150 |
repeat_block postdraw |
| 151 |
surface_end |
| 152 |
|
| 153 |
|
| 154 |
# Overlay |
| 155 |
surface_begin 300 200 100 100 |
| 156 |
repeat_block predraw |
| 157 |
setCompositionMode Overlay |
| 158 |
repeat_block postdraw |
| 159 |
surface_end |
| 160 |
|
| 161 |
|
| 162 |
# Darken |
| 163 |
surface_begin 400 200 100 100 |
| 164 |
repeat_block predraw |
| 165 |
setCompositionMode Darken |
| 166 |
repeat_block postdraw |
| 167 |
surface_end |
| 168 |
|
| 169 |
|
| 170 |
# Lighten |
| 171 |
surface_begin 500 200 100 100 |
| 172 |
repeat_block predraw |
| 173 |
setCompositionMode Lighten |
| 174 |
repeat_block postdraw |
| 175 |
surface_end |
| 176 |
|
| 177 |
translate 0 50 |
| 178 |
|
| 179 |
# ColorDodge |
| 180 |
surface_begin 0 300 100 100 |
| 181 |
repeat_block predraw |
| 182 |
setCompositionMode ColorDodge |
| 183 |
repeat_block postdraw |
| 184 |
surface_end |
| 185 |
|
| 186 |
|
| 187 |
# ColorBurn |
| 188 |
surface_begin 100 300 100 100 |
| 189 |
repeat_block predraw |
| 190 |
setCompositionMode ColorBurn |
| 191 |
repeat_block postdraw |
| 192 |
surface_end |
| 193 |
|
| 194 |
|
| 195 |
# HardLight |
| 196 |
surface_begin 200 300 100 100 |
| 197 |
repeat_block predraw |
| 198 |
setCompositionMode HardLight |
| 199 |
repeat_block postdraw |
| 200 |
surface_end |
| 201 |
|
| 202 |
|
| 203 |
# SoftLight |
| 204 |
surface_begin 300 300 100 100 |
| 205 |
repeat_block predraw |
| 206 |
setCompositionMode SoftLight |
| 207 |
repeat_block postdraw |
| 208 |
surface_end |
| 209 |
|
| 210 |
|
| 211 |
# Difference |
| 212 |
surface_begin 400 300 100 100 |
| 213 |
repeat_block predraw |
| 214 |
setCompositionMode Difference |
| 215 |
repeat_block postdraw |
| 216 |
surface_end |
| 217 |
|
| 218 |
|
| 219 |
# Exclusion |
| 220 |
surface_begin 500 300 100 100 |
| 221 |
repeat_block predraw |
| 222 |
setCompositionMode Exclusion |
| 223 |
repeat_block postdraw |
| 224 |
surface_end |
| 225 |
|
| 226 |
resetMatrix |
| 227 |
|
| 228 |
drawText 0 50 "SourceOver" |
| 229 |
drawText 100 50 "DestinationOver" |
| 230 |
drawText 200 50 "Clear" |
| 231 |
drawText 300 50 "Source" |
| 232 |
drawText 400 50 "Destination" |
| 233 |
drawText 500 50 "SourceIn" |
| 234 |
drawText 0 200 "DestinationIn" |
| 235 |
drawText 100 200 "SourceOut" |
| 236 |
drawText 200 200 "DestinationOut" |
| 237 |
drawText 300 200 "SourceAtop" |
| 238 |
drawText 400 200 "DestinationAtop" |
| 239 |
drawText 500 200 "Xor" |
| 240 |
drawText 0 350 "Plus" |
| 241 |
drawText 100 350 "Multiply" |
| 242 |
drawText 200 350 "Screen" |
| 243 |
drawText 300 350 "Overlay" |
| 244 |
drawText 400 350 "Darken" |
| 245 |
drawText 500 350 "Lighten" |
| 246 |
drawText 0 500 "ColorDodge" |
| 247 |
drawText 100 500 "ColorBurn" |
| 248 |
drawText 200 500 "HardLight" |
| 249 |
drawText 300 500 "SoftLight" |
| 250 |
drawText 400 500 "Difference" |
| 251 |
drawText 500 500 "Exclusion" |