1 Series of tests to ensure correct results on applying different blend modes when drawing with clipped regions.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 Testing blend mode source-over
7 PASS actualColor(0, 0)[0] is within 5 of 0
8 PASS actualColor(0, 0)[1] is within 5 of 0
9 PASS actualColor(0, 0)[2] is within 5 of 0
10 PASS actualColor(0, 0)[3] is within 5 of 0
11 PASS actualColor(5, 5)[0] is within 5 of 255
12 PASS actualColor(5, 5)[1] is within 5 of 129
13 PASS actualColor(5, 5)[2] is within 5 of 129
14 PASS actualColor(5, 5)[3] is within 5 of 255
16 Testing blend mode multiply
17 PASS actualColor(0, 0)[0] is within 5 of 0
18 PASS actualColor(0, 0)[1] is within 5 of 0
19 PASS actualColor(0, 0)[2] is within 5 of 0
20 PASS actualColor(0, 0)[3] is within 5 of 0
21 PASS actualColor(5, 5)[0] is within 5 of 129
22 PASS actualColor(5, 5)[1] is within 5 of 129
23 PASS actualColor(5, 5)[2] is within 5 of 65.25882352941176
24 PASS actualColor(5, 5)[3] is within 5 of 255
26 Testing blend mode screen
27 PASS actualColor(0, 0)[0] is within 5 of 0
28 PASS actualColor(0, 0)[1] is within 5 of 0
29 PASS actualColor(0, 0)[2] is within 5 of 0
30 PASS actualColor(0, 0)[3] is within 5 of 0
31 PASS actualColor(5, 5)[0] is within 5 of 255
32 PASS actualColor(5, 5)[1] is within 5 of 255
33 PASS actualColor(5, 5)[2] is within 5 of 192.74117647058821
34 PASS actualColor(5, 5)[3] is within 5 of 255
36 Testing blend mode overlay
37 PASS actualColor(0, 0)[0] is within 5 of 0
38 PASS actualColor(0, 0)[1] is within 5 of 0
39 PASS actualColor(0, 0)[2] is within 5 of 0
40 PASS actualColor(0, 0)[3] is within 5 of 0
41 PASS actualColor(5, 5)[0] is within 5 of 255
42 PASS actualColor(5, 5)[1] is within 5 of 255
43 PASS actualColor(5, 5)[2] is within 5 of 130.48235294117646
44 PASS actualColor(5, 5)[3] is within 5 of 255
46 Testing blend mode darken
47 PASS actualColor(0, 0)[0] is within 5 of 0
48 PASS actualColor(0, 0)[1] is within 5 of 0
49 PASS actualColor(0, 0)[2] is within 5 of 0
50 PASS actualColor(0, 0)[3] is within 5 of 0
51 PASS actualColor(5, 5)[0] is within 5 of 129
52 PASS actualColor(5, 5)[1] is within 5 of 129
53 PASS actualColor(5, 5)[2] is within 5 of 129
54 PASS actualColor(5, 5)[3] is within 5 of 255
56 Testing blend mode lighten
57 PASS actualColor(0, 0)[0] is within 5 of 0
58 PASS actualColor(0, 0)[1] is within 5 of 0
59 PASS actualColor(0, 0)[2] is within 5 of 0
60 PASS actualColor(0, 0)[3] is within 5 of 0
61 PASS actualColor(5, 5)[0] is within 5 of 255
62 PASS actualColor(5, 5)[1] is within 5 of 255
63 PASS actualColor(5, 5)[2] is within 5 of 129
64 PASS actualColor(5, 5)[3] is within 5 of 255
66 Testing blend mode color-dodge
67 PASS actualColor(0, 0)[0] is within 5 of 0
68 PASS actualColor(0, 0)[1] is within 5 of 0
69 PASS actualColor(0, 0)[2] is within 5 of 0
70 PASS actualColor(0, 0)[3] is within 5 of 0
71 PASS actualColor(5, 5)[0] is within 5 of 255
72 PASS actualColor(5, 5)[1] is within 5 of 255
73 PASS actualColor(5, 5)[2] is within 5 of 255
74 PASS actualColor(5, 5)[3] is within 5 of 255
76 Testing blend mode color-burn
77 PASS actualColor(0, 0)[0] is within 5 of 0
78 PASS actualColor(0, 0)[1] is within 5 of 0
79 PASS actualColor(0, 0)[2] is within 5 of 0
80 PASS actualColor(0, 0)[3] is within 5 of 0
81 PASS actualColor(5, 5)[0] is within 5 of 129
82 PASS actualColor(5, 5)[1] is within 5 of 255
83 PASS actualColor(5, 5)[2] is within 5 of 5.930232558139517
84 PASS actualColor(5, 5)[3] is within 5 of 255
86 Testing blend mode hard-light
87 PASS actualColor(0, 0)[0] is within 5 of 0
88 PASS actualColor(0, 0)[1] is within 5 of 0
89 PASS actualColor(0, 0)[2] is within 5 of 0
90 PASS actualColor(0, 0)[3] is within 5 of 0
91 PASS actualColor(5, 5)[0] is within 5 of 255
92 PASS actualColor(5, 5)[1] is within 5 of 255
93 PASS actualColor(5, 5)[2] is within 5 of 130.48235294117646
94 PASS actualColor(5, 5)[3] is within 5 of 255
96 Testing blend mode soft-light
97 PASS actualColor(0, 0)[0] is within 5 of 0
98 PASS actualColor(0, 0)[1] is within 5 of 0
99 PASS actualColor(0, 0)[2] is within 5 of 0
100 PASS actualColor(0, 0)[3] is within 5 of 0
101 PASS actualColor(5, 5)[0] is within 5 of 181.3697880023021
102 PASS actualColor(5, 5)[1] is within 5 of 255
103 PASS actualColor(5, 5)[2] is within 5 of 129.61611515296823
104 PASS actualColor(5, 5)[3] is within 5 of 255
106 Testing blend mode difference
107 PASS actualColor(0, 0)[0] is within 5 of 0
108 PASS actualColor(0, 0)[1] is within 5 of 0
109 PASS actualColor(0, 0)[2] is within 5 of 0
110 PASS actualColor(0, 0)[3] is within 5 of 0
111 PASS actualColor(5, 5)[0] is within 5 of 126
112 PASS actualColor(5, 5)[1] is within 5 of 126
113 PASS actualColor(5, 5)[2] is within 5 of 0
114 PASS actualColor(5, 5)[3] is within 5 of 255
116 Testing blend mode exclusion
117 PASS actualColor(0, 0)[0] is within 5 of 0
118 PASS actualColor(0, 0)[1] is within 5 of 0
119 PASS actualColor(0, 0)[2] is within 5 of 0
120 PASS actualColor(0, 0)[3] is within 5 of 0
121 PASS actualColor(5, 5)[0] is within 5 of 126
122 PASS actualColor(5, 5)[1] is within 5 of 126
123 PASS actualColor(5, 5)[2] is within 5 of 127.48235294117649
124 PASS actualColor(5, 5)[3] is within 5 of 255
126 Testing blend mode hue
127 PASS actualColor(0, 0)[0] is within 5 of 0
128 PASS actualColor(0, 0)[1] is within 5 of 0
129 PASS actualColor(0, 0)[2] is within 5 of 0
130 PASS actualColor(0, 0)[3] is within 5 of 0
131 PASS actualColor(5, 5)[0] is within 5 of 255
132 PASS actualColor(5, 5)[1] is within 5 of 181
133 PASS actualColor(5, 5)[2] is within 5 of 181
134 PASS actualColor(5, 5)[3] is within 5 of 255
136 Testing blend mode saturation
137 PASS actualColor(0, 0)[0] is within 5 of 0
138 PASS actualColor(0, 0)[1] is within 5 of 0
139 PASS actualColor(0, 0)[2] is within 5 of 0
140 PASS actualColor(0, 0)[3] is within 5 of 0
141 PASS actualColor(5, 5)[0] is within 5 of 129
142 PASS actualColor(5, 5)[1] is within 5 of 255
143 PASS actualColor(5, 5)[2] is within 5 of 129
144 PASS actualColor(5, 5)[3] is within 5 of 255
146 Testing blend mode color
147 PASS actualColor(0, 0)[0] is within 5 of 0
148 PASS actualColor(0, 0)[1] is within 5 of 0
149 PASS actualColor(0, 0)[2] is within 5 of 0
150 PASS actualColor(0, 0)[3] is within 5 of 0
151 PASS actualColor(5, 5)[0] is within 5 of 255
152 PASS actualColor(5, 5)[1] is within 5 of 181
153 PASS actualColor(5, 5)[2] is within 5 of 181
154 PASS actualColor(5, 5)[3] is within 5 of 255
156 Testing blend mode luminosity
157 PASS actualColor(0, 0)[0] is within 5 of 0
158 PASS actualColor(0, 0)[1] is within 5 of 0
159 PASS actualColor(0, 0)[2] is within 5 of 0
160 PASS actualColor(0, 0)[3] is within 5 of 0
161 PASS actualColor(5, 5)[0] is within 5 of 92
162 PASS actualColor(5, 5)[1] is within 5 of 218
163 PASS actualColor(5, 5)[2] is within 5 of 92
164 PASS actualColor(5, 5)[3] is within 5 of 255
166 PASS successfullyParsed is true