Browse Source

Merge pull request #121 from bouzuya/fix-copy-pixel-args

copyPixel() ignores the fourth argument
pull/125/head
James Cryer 7 years ago committed by GitHub
parent
commit
369bdd00aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      resemble.js

2
resemble.js

@ -496,7 +496,7 @@ URL: https://github.com/Huddle/Resemble.js
} }
if( isRGBSimilar(pixel1, pixel2) || !isWithinBoundingBox ){ if( isRGBSimilar(pixel1, pixel2) || !isWithinBoundingBox ){
copyPixel(targetPix, offset, pixel1, pixel2); copyPixel(targetPix, offset, pixel1);
} else if( ignoreAntialiasing && ( } else if( ignoreAntialiasing && (
addBrightnessInfo(pixel1), // jit pixel info augmentation looks a little weird, sorry. addBrightnessInfo(pixel1), // jit pixel info augmentation looks a little weird, sorry.

Loading…
Cancel
Save