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