Skip to content

Commit

Permalink
Merge pull request #136 from nbwsc/master
Browse files Browse the repository at this point in the history
fix a bug in VBOX.contains
  • Loading branch information
lokesh authored Apr 23, 2019
2 parents 4f0acc1 + fedd83a commit 0951178
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/color-thief.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@ var MMCQ = (function() {
},
contains: function(pixel) {
var vbox = this,
rval = pixel[0] >> rshift;
gval = pixel[1] >> rshift;
rval = pixel[0] >> rshift,
gval = pixel[1] >> rshift,
bval = pixel[2] >> rshift;
return (rval >= vbox.r1 && rval <= vbox.r2 &&
gval >= vbox.g1 && gval <= vbox.g2 &&
Expand Down

0 comments on commit 0951178

Please sign in to comment.