Skip to content

Commit d78aa3b

Browse files
committed
another microoptimization
1 parent 4855a68 commit d78aa3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ function colorDelta(img1, img2, k, m, yOnly) {
221221
let db = b1 - b2;
222222
const da = a1 - a2;
223223

224-
if (!da && !dr && !dg && !db) return 0;
224+
if (!dr && !dg && !db && !da) return 0;
225225

226226
if (a1 < 255 || a2 < 255) { // blend pixels with background
227227
const rb = 48 + 159 * (k % 2);

0 commit comments

Comments
 (0)