Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Commit

Permalink
Fix some gif transparency against antimatter15#3 , ref to
Browse files Browse the repository at this point in the history
  • Loading branch information
flyskywhy committed Jan 16, 2023
1 parent 508c3fe commit c6ae80a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GIFEncoder.js
Expand Up @@ -341,7 +341,7 @@ const GIFEncoder = function() {
var dg = g - (colorTab[i++] & 0xff);
var db = b - (colorTab[i] & 0xff);
var d = dr * dr + dg * dg + db * db;
var index = i / 3;
var index = i / 3 | 0;
if (usedEntry[index] && (d < dmin)) {
dmin = d;
minpos = index;
Expand Down

0 comments on commit c6ae80a

Please sign in to comment.