Skip to content

Commit

Permalink
fix diff
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Aug 5, 2024
1 parent c9bafbc commit f8bc19f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/images/difference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ export async function difference(
continue;
case DiffType.Changed:
data.set(hexToRGBA(CHANGED_PIXEL_COLOR), i);
continue;
default:
// set to original pixel
data.set(first.pixels.slice(i, i + 3), i);
data[i + 3] = first.pixels[i + 3] * TRANSPARENCY_FACTOR;
continue;
}
}

Expand Down

0 comments on commit f8bc19f

Please sign in to comment.