Skip to content

Commit

Permalink
fix getCanvasContrast: wrong calc for imagedata offset.
Browse files Browse the repository at this point in the history
  • Loading branch information
yoya committed May 20, 2017
1 parent 8e3d0a1 commit b161ed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spectrum.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ function getCanvasContrast(canvas) {
var r = data[i++]
var g = data[i++];
var b = data[i++];
// a ; i++;
i++; // a;
if (r < minRed) {
minRed = r;
} else if (maxRed < r) {
Expand Down

0 comments on commit b161ed9

Please sign in to comment.