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